How do I use "column" function to get the column number of the firstcell matching criteria?

F

Filip Houdek

I want to find the column number of the first cell containing a number
greater than a specified number. How would I do this?
Example: Row A1-E1 contains 5 10 15 20 25, and I want to find the
column number of the first cell greater than 10. This would be cell
C1, so I want the result "3".
 
C

Claus Busch

Hi,

Am Tue, 1 May 2012 22:07:06 -0700 (PDT) schrieb Filip Houdek:
I want to find the column number of the first cell containing a number
greater than a specified number. How would I do this?
Example: Row A1-E1 contains 5 10 15 20 25, and I want to find the
column number of the first cell greater than 10. This would be cell
C1, so I want the result "3".

try:
=MATCH(LARGE(A1:E1,COUNTIF(A1:E1,">"&10)),A1:E1,0)


Regards
Claus Busch
 

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