Vlookups

agerrard

Active Member
Joined
Apr 4, 2005
Messages
406
Hi All,

Does anyone know how to do a vlookup, but then to take the value on either side of the cell?

So say i have the following:

A B C D
1 26.49 19.99 26.49
2
3 Product 1 1000 8000 700

So i want the vlookup to find the $19.99 value (so in C1) but instead of returning the 8000 value i want it to take the 1000 value instead (so the one to the left).

Is this possible or is their another way to do this?

Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi All,

Does anyone know how to do a vlookup, but then to take the value on either side of the cell?

So say i have the following:

A B C D
1 26.49 19.99 26.49
2
3 Product 1 1000 8000 700

So i want the vlookup to find the $19.99 value (so in C1) but instead of returning the 8000 value i want it to take the 1000 value instead (so the one to the left).

Is this possible or is their another way to do this?

Thanks!
It's not real clear what you want to do.

If you want to do a lookup to the left...

Book1
ABCDE
290ALookupResult
334B_D65
445C___
565D___
694E___
762F___
850G___
913H___
1025I___
Sheet1

Formula entered in E3:

=INDEX(A2:A10,MATCH(D3,B2:B10,0))
 
Upvote 0
Hi,

You can use INDEX/MATCH. Say F1 houses the lookup-value (19.99 in the example), try this on Excel 2007 or higher

=IFERROR(INDEX(B3:D3,MATCH($F$1,$B$1:$D$1,0)-1),"")

HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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