VOOKUP previous column from different sheet

lecet444

Board Regular
Joined
May 18, 2011
Messages
91
=VLOOKUP(D1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7419.xls]PO'!$D$16:$Q$16,2,0)

I would love to make that a -1

there is noway of me changing the colums on those sheets (there are hundreds + the master one is setup that way. qty before part #.

anyway around this
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Yep, it's called the Zoolander effect..
Vlookup can only Look to the right, it can't look left...

This is one of the reasons Index/Match is MUCH better than Vlookup...


Try

=INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7419.xls]PO'!$C$16:$C$16,MATCH(D1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7419.xls]PO'!$D$16:$D$16,0))

Returns a value from column C, based on the match in column D.


Hope that helps...


Note, although it appears you're only looking in 1 ROW of data D16:O16, kinda defeats the purpose of VLOOKUP...
Unless that was just a quick example, and it's actually something like D16:O1000
 
Upvote 0
my next bit is how to incorporate that in a code, where every row is different PO (each po is a differnt file name)
but the the PO number is on the row
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,600
Members
452,927
Latest member
whitfieldcraig

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