Solving for 1st Occurrence in a row

dj1cincy

New Member
Joined
Nov 24, 2017
Messages
3
I am trying to display the number in the cell above the row of percentages that 1st hit above a particular percent.

1122334455
1.05% (1.01%)0.90% (0.85%)1.30% (0.75%)1.62% (0.38%)1.75% (0.47%)

<colgroup><col width="64" span="10" style="width:48pt"> </colgroup><tbody>
</tbody>

If I want to see the first time the percent is above 1.50%, how do I do this? The result of the formula should be 4 in this example.

Thank you
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Code:
=INDEX(A1:J1,SMALL(IF(A2:J2>=1.5%,COLUMN($A$1:$J$1)-COLUMN($A$1)+1),1))

This is an array formula and must be committed with CTRL+SHIFT+ENTER not just enter. If done correctly you will see {} around the formula in the formula bar.
 
Upvote 0

Excel 2010
ABCDEFGHIJ
11222334455
21.05%-1.01%0.90%-0.85%1.30%-0.75%1.62%-0.38%1.75%-0.47%
3
44
Sheet7
Cell Formulas
RangeFormula
A4{=INDEX($A$1:$J$1,MATCH(TRUE,$A$2:$J$2>0.015,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.


works also
 
Upvote 0
Excel 2010
ABCDEFGHIJ
11222334455
21.05%-1.01%0.90%-0.85%1.30%-0.75%1.62%-0.38%1.75%-0.47%
3
44

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet7

Array Formulas
CellFormula
A4{=INDEX($A$1:$J$1,MATCH(TRUE,$A$2:$J$2>0.015,0))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



works also

This works really well. Thank you for the formula. I do have one additional question. Is there a way to return a number other than the column number if the criteria is not true? For instance, if the highest number in the row is 5 and we are solving doe greater than 10, can we return a specific number we place in the formula, for instance 100?
 
Upvote 0
This?


Excel 2010
ABCDEFGHIJ
11222334455
21.05%-1.01%0.90%-0.85%1.30%-0.75%1.62%-0.38%1.75%-0.47%
3
4100
Sheet7 (2)
Cell Formulas
RangeFormula
A4=IF(MAX($A$1:$J$1)<10,100)
 
Upvote 0
This works really well. Thank you for the formula. I do have one additional question. Is there a way to return a number other than the column number if the criteria is not true? For instance, if the highest number in the row is 5 and we are solving doe greater than 10, can we return a specific number we place in the formula, for instance 100?
Give this array-entered** formula a try...

=MIN(IF(A2:J2>0.015,A1:J1,100))

**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself
 
Upvote 0
I might have misread the requirements so here's another version to consider:


Excel 2010
ABCDEFGHIJ
11222334455
21.05%-1.01%0.90%-0.85%1.30%-0.75%1.62%-0.38%1.75%-0.47%
3
44
5
6
71222334455
81.05%-1.01%0.90%-0.85%1.30%-0.75%1.62%-0.38%1.75%-0.47%
9
10100
Sheet7
Cell Formulas
RangeFormula
A4{=IFERROR(INDEX($A$1:$J$1,MATCH(1,1/($A$2:$J$2>0.015),0)),100)}
A10{=IFERROR(INDEX($A$1:$J$1,MATCH(1,1/($A$2:$J$2>0.02),0)),100)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

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