Hello,
I have a sheet (price) which acts as a lookup table for another sheet where I use the LOOKUP function. This mostly works, but for one row in the sheet it is used in, it does not. The column B contains a text.
This works:
=LOOKUP(B10,$Prices.A$1:$Prices.A$206,$Prices.B$1:$Prices.B$206)
The next row does not (it yields #N/A)
=LOOKUP(B11,$Prices.A$1:$Prices.A$206,$Prices.B$1:$Prices.B$206)
All following rows work again as do all above B10. The value which is being looked up definitely is contained in the lookup sheet and the result value for that index is a number.
On a potentially related note I discovered a sorting issue that I can’t explain. In order for the LOOKUP function to work, the lookup table must be in ascending order. However, when I alpha-sort this table (this is the index column of the mentioned table), Calc somehow gets things wrong. Take a look:
3205
3206
6002
6003
6004
6005
6006
6007
6008
6009
6010
6204
6205
6206
6304
6305
51104 <------
51105 <------
51108 <------
51202 <------
51205 <------
2344 P4 <------
51106 <------
51109 P4 <------
6303 <------
7204 B
7205 B
7206 B
7208 B P4
7208 B P5
7211 B P5
7304 B
7305 B
NA 4906
NN 3010K P41
NN 3012K P41
NU 208 P42
I have no idea what the reason for this is. The column format is “Text”. When I copy/paste this list from a text file into a new sheet, then sort the order is correct.
This is driving me nuts, can someone please tell me what I’m doing wrong?
Thanks
Mark