Searching column "B" then report the value in the adjacent cell in column "A"

Kindlysinful

New Member
Joined
Feb 17, 2007
Messages
29
I have two columns of data, A and B
What I do is find the max number in column B, report that value in C3. Easy enough with =MAX(b2:b5000).
What I need to do next is find what 80% of that value is then search “B” for a number equal to or just above that 80% value. Then reference the adjacent cell in “A” and report the value in column "A" in C4.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
If you can add a column of data then the following should work:
If your data set is A2:B5000, as noted C3 = MAX(B2:B5000)
In cell D2 you can add the formula =IF(B2-($C$3*0.8)<0,"",B2-($C$3*0.8)) can fill down to D5000.
C4 =INDEX(A2:A5000,MATCH(MIN(D2:D5000),D2:D5000,0))
 
Upvote 0
So sorry for the extended delayed response, I was called out of the country for work. I will try and post an example but I was not seeing any borders.
 
Upvote 0
Time (ms)Pressure
-0.0306.713867
-0.0256.103516 685.66781Max Psi
-0.0205.493164 Time to 80% Peak
-0.0156.103516
-0.0105.493164
-0.0055.493164
0.0005.493164
0.0056.103516
0.0106.103516
0.0155.493164
0.0206.103516
0.0255.493164
0.0304.882812
0.0356.713867
0.0406.713867
0.0454.882812
0.0506.103516
0.0555.493164
0.0606.713867
0.0656.103516
0.0706.103516
0.0757.324219
0.0806.103516
0.0855.493164
0.0906.103516
0.0956.103516
0.1006.103516
0.1057.324219
0.1106.103516
0.1154.882812
0.1205.493164
0.1257.324219
0.1305.493164
0.1356.713867
0.1406.713867
0.1456.103516
0.1506.103516
0.1556.103516
0.1605.493164
0.1655.493164
0.1705.493164
0.1756.103516
0.1805.493164
0.1855.493164
0.1906.103516
0.1956.103516
0.2006.103516
0.2056.713867
0.2106.103516
0.2156.103516
0.2205.493164
0.2255.493164
0.2305.493164
0.2355.493164
0.2406.103516
0.2456.103516
0.2504.882812
0.2555.493164
0.2605.493164
0.2655.493164
0.2706.103516
0.2754.272461
0.2805.493164
0.2856.103516
0.2906.103516
0.2954.882812
0.3006.103516
0.3056.103516
0.3106.103516
0.3156.103516
0.3206.103516
0.3256.713867
0.33010.0001
0.33512.3242
0.34016.9087
0.345100.7653
0.350104.2196
0.355131.90761
0.360159.59562
0.365187.28363
0.370214.97164
0.375242.65965
0.380270.34766
0.385298.03567
0.390325.72368
0.395353.41169
0.400381.0997
0.405408.78771
0.410436.47572
0.415464.16373
0.420491.85174
0.425519.53975
0.430547.22776
0.435574.91577
0.440602.60378
0.445630.29179
0.450657.9798
0.455685.66781

<colgroup><col><col span="3"><col></colgroup><tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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