ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   LOOKUP problems (https://www.excelbanter.com/excel-worksheet-functions/157474-lookup-problems.html)

Martin Ledgard

LOOKUP problems
 
I'm using the LOOKUP vector function to ascribe text data to numeric values
(e.g. returning "2a" for the number "15") successfully. I want to be able to
operate the LOOKUP table in reverse (i.e. return "15" for a value entered of
"2a") but it is not working accurately. I either get an error message or an
incorrect value from elsewhere in the LOOKUP table. The text values take the
form: 1c, 1b, 1a, 2c, 2b, 2a etc. Is this the problem?

Toppers

LOOKUP problems
 
For LOOKUP the values must be in ascending order:
1a,1b,1c..... etc

"Martin Ledgard" wrote:

I'm using the LOOKUP vector function to ascribe text data to numeric values
(e.g. returning "2a" for the number "15") successfully. I want to be able to
operate the LOOKUP table in reverse (i.e. return "15" for a value entered of
"2a") but it is not working accurately. I either get an error message or an
incorrect value from elsewhere in the LOOKUP table. The text values take the
form: 1c, 1b, 1a, 2c, 2b, 2a etc. Is this the problem?


Martin Ledgard[_2_]

LOOKUP problems
 
Yep - solved it now. Cheers.

Peo Sjoblom

LOOKUP problems
 
You can also use VLOOKUP and use any order as long as you put FALSE or 0
as the 4th argument in the formula

=VLOOKUP(A2,{"1c",15;"1b",15;"1a",15;"2c",15;"2b", 15;"2a",15},2,0)


as an example


--
Regards,

Peo Sjoblom



"Martin Ledgard" wrote in message
...
Yep - solved it now. Cheers.





All times are GMT +1. The time now is 08:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com