Column Numbers

D

Doug Terry

How do I get the column number of the minimum value in a row?
Example:
A B C D
4 9 2.5 7

How do I get the column number of 3? I'd like to use this value in a lookup
function in another location.

Thanks,
 
S

Sheeloo

Try this in A2

=LOOKUP(2,1/(A1:D1=MIN(A1:D1)),COLUMN(1:1))

Change D, in D1 in the formula, to the column letter if you want to extend
the range...
 
D

Doug Terry

Thanks very much everyone. This answers my question and will greatly
simplify finding things in a large spreadsheet)
 
Top