The electronic Excel Helpfile on VLOOKUP is pretty good. Look at that to see what the individual terms in the function are doing.
Okay, the first time the VLOOKUP is mentioned, it's checking to see if that function produces an error (in which case it returns a blank). The second time is when it produces a result. For troubleshooting, we just need the second part of the formula so just go with
If that returns a #NAME error, then it's not recognizing the name of your table most likely. If you named the range as we discussed, it should automatically know that range ColorTable is in Sheet2 (provided you did move everything to the same workbook)
If your formula returns #NA then it is not finding your value in the first column of ColorTable. Double check that they are the same. Blanks and invisible characters count!
It would help if you uploaded a zipped example of what you've done and we can troubleshoot it.
ChemistB
Bookmarks