Return the value (or column #) of the first instance in a row that meets certain criteria

dmarsh

New Member
Joined
May 17, 2007
Messages
18
Hello,

I'm looking for a way to return the value (or the column #) of the first instance in a row that meets certain criteria. For example:


Let's assume that I want to find the first instance in row 3 with a value greater than 15. I would like a formula that would either return the value of 20 (which is in Col C) or a column reference of 3 (related to Col C).

Col B Col C Col D Col E Col F

Row 3 5 20 15 25 22

Thanks in advance for your help!
Danny
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,


ABCDEF
1
24315202522
320

<tbody>
</tbody>
Foglio2

Worksheet Formulas
CellFormula
A2=IFERROR(MATCH(TRUE,INDEX((B2:F2>15),),0),"")+1
A3=IFERROR(INDEX(B2:O2,MATCH(TRUE,INDEX((B2:F2>15),),0)),"")

<tbody>
</tbody>

<tbody>
</tbody>


Not sure if you need +1 in the first formula.

Hope it helps
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,982
Messages
6,122,580
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top