Lookup based on column

dannyok90

Board Regular
Joined
Aug 30, 2016
Messages
115
Hi all,

i have a quick one, looking at the attached screenshot in h16 i have MAX looking at e10-f10 returning the highest number.

i want to get the percentage from that column for the line i'm on if that makes sense :)

Happy friday everyone!

Dan

1706894307256.png
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Are you wanting to return 50% because it's in the second column?
If so try:
Book1
ABCDEFGHI
10
11Cost Center IDVariationDescriptionClient PriceApplication %Total %
12External Works
131Car Park49,772.16
14
15001-01vooBarriers/Wheel Stops9,720.0010%50%60%250%
16001-02vooPreperation Work21,177.890%
17001-03vooSMA Overlay15,641.470%
18001-04vooDemarcation1,200.000%
19001-05vooMan Hole Covers2,032.800%
202Entrance18,349.20
Sheet1
Cell Formulas
RangeFormula
I15I15=INDEX($E$15:$F$15,$H15)
 
Upvote 0
Are you wanting to return 50% because it's in the second column?
If so try:
Book1
ABCDEFGHI
10
11Cost Center IDVariationDescriptionClient PriceApplication %Total %
12External Works
131Car Park49,772.16
14
15001-01vooBarriers/Wheel Stops9,720.0010%50%60%250%
16001-02vooPreperation Work21,177.890%
17001-03vooSMA Overlay15,641.470%
18001-04vooDemarcation1,200.000%
19001-05vooMan Hole Covers2,032.800%
202Entrance18,349.20
Sheet1
Cell Formulas
RangeFormula
I15I15=INDEX($E$15:$F$15,$H15)

Thanks AhoyNC.

Yes exactly, basically so when I add a new column, in this case the next one would be 3, it would give me the percentage in that cell on that line. I’m not on my laptop now but I’ll give it a whirl and come back to you :)

Dan
 
Upvote 0
You will need to change the reference columns in the index to match your columns. Also, probably need to remove the absolute references in the INDEX if you are going to copy the formula down.
For 3 columns something like this:
=INDEX($E15:$G15,$H15)
 
Upvote 0
Solution
You will need to change the reference columns in the index to match your columns. Also, probably need to remove the absolute references in the INDEX if you are going to copy the formula down.
For 3 columns something like this:
=INDEX($E15:$G15,$H15)

Just jumped on the laptop and this worked perfectly. thanks AhoyNC! really appreciate it!
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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