using lookup to find the first occurance greater than X

millertime_2004

New Member
Joined
Jul 19, 2011
Messages
2
I have a table of data that I need to return a the first occurrence greater than my criteria. I have tried a few options found using the search here and have not had any luck, it always returns the last instance. I have tried LOOKUP, and VLOOKUP.

Column A Column B
<table width="243" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:3986;width:82pt" width="109"> <col style="mso-width-source:userset;mso-width-alt:4900;width:101pt" width="134"> <tbody><tr style="height:12.75pt" height="17"> <td style="height:12.75pt;width:82pt" width="109" align="right" height="17">4.167</td> <td style="width:101pt" width="134" align="right">2</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">3.188</td> <td align="right">1.9</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">0.251</td> <td align="right">1.8</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">1.707</td> <td align="right">1.7</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">2.687</td> <td align="right">1.6</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">4.645</td> <td align="right">1.5</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">6.114</td> <td align="right">1.4</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">5.624</td> <td align="right">1.3</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">2.197</td> <td align="right">1.2</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">6.126</td> <td align="right">1.1</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">24.729</td> <td align="right">1</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">58.998</td> <td align="right">0.9</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">94</td> <td align="right">0.8</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">202.93</td> <td align="right">0.7</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">323.362</td> <td align="right">0.6</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">458.971</td> <td align="right">0.5</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">586.258</td> <td align="right">0.4</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">689.556</td> <td align="right">0.3</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">760.542</td> <td align="right">0.2</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">792.853</td> <td align="right">0.1</td> </tr> <tr style="height:12.75pt" height="17"> <td style="height:12.75pt" align="right" height="17">799.707</td> <td align="right">0
</td> </tr> </tbody></table>

I am looking to return the first occurance in Column B where Column A is greater than 95, so I should get 0.7. please help
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Excel Workbook
ABCD
14.1672
23.1881.9
30.2511.8
41.7071.7
52.6871.6
64.6451.5
76.1141.4
85.6241.3
92.1971.2
106.1261.1
1124.7291
1258.9980.9
13940.8
14202.930.7
15323.3620.6
16458.9710.5
17586.2580.4
18689.5560.3
19760.5420.2
20792.8530.1
21799.7070
22
23950.7
Sheet1
 
Upvote 0
Try this

=INDEX(B1:B21,MATCH(1,--(A1:A21>95),0))

entered as an array formula (ie using ctrl + shift + enter)

so it looks like this in the formula bar,

{=INDEX(B1:B21,MATCH(1,--(A1:A21>95),0))}
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,766
Members
452,940
Latest member
rootytrip

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