How to derive cell info from a lookup

J

Joe V

Hello all,

Using Excel 97, I need to search a range for a value
stored elsewhere in the workbook, and return the column
number where found, instead of the actual value (for use
as the column_index argument of a subsequent vlookup). I
can find the value with an HLOOKUP, but cannot figure out
how to return the column index instead of the value. have
tried COLUMN(HLOOKUP(etc...)), CELL("col",HLOOKUP
(etc...)), and various additional text functions in hopes
of converting the HLOOKUP result to a cell reference, all
in vain. Anyone have an idea?

Thanks,
Joe V
 
N

Niek Otten

Hi Joe,

Use the MATCH() function. See HELP for details.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top