Trying to use VBA in Excel to perform some VLookup equivalent function. I have this sample table:
Basically, this is what I want to do:
1) Based on the value in B12, lookup the value in table A1:A8. 2) Set cell B13 with the lookup returned value 3) If no match found (example, B12=100000), throw an error message.
I am currently using a bunch of "IF.. ElseIf" statements and it is becoming too cumbersome to maintain.
Thanks in advance.