
Originally Posted by
MrShorty
The LEFT() function in your C7 formula "=IF(LEFT(D10,4)="Proj","",LEFT(D10,4))" returns a text string "1051". When you hand enter 1051, it will be entered as a number, not a text string. Excel sees the text string "1051" and the number 1051 as different. Your pictures do not show your lookup tables, but I would guess that, in your lookup tables, the lookup values are numbers and not text strings. When you search for the text string "1051" in a list of numbers, it is not found.
My first thought for a solution is to make sure you C7 formula returns a number and not a text string. I might simply nest the LEFT() function inside of a VALUE() function =IF(...,...,VALUE(LEFT(...))). That should force text "1051" to the number 1051, which will be found in your lookup table.
Bookmarks