=If(VLOOKUP - cross reference cells

Bravo2003

Active Member
Joined
Apr 1, 2010
Messages
260
Need to improve (solve problem) with the following formula...

=IF(VLOOKUP($A9,'[STD PRICE L_2014Q4.xls]Products'!$A:$P,COLUMN(J9),0)=J9,J9,'[STD PRICE L_2014Q4.xls]Products'!$J8)

So basicly I need to a find/cross ref the code in Cell A9 in another file (STD PRICE L_2014Q4.xls)
and if it finds it matches, show text in Cell J9 otherwise show the text that appears in matching cell in column J of 'STD PRICE L_2014Q4.xls'

If that makes sense?

Can't use cell references from STD PRICE L_2014Q4.xls as they do not always run in the same order..

Can anyone help?
 

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Scrappy666

Board Regular
Joined
Jul 6, 2012
Messages
215
Hi,

Just so i understand, you want the Vlookup to look at a second sheet, but the columns may not be in the same order?
Will they always have the same headings?

Thanks
Dan
 

Bravo2003

Active Member
Joined
Apr 1, 2010
Messages
260
Hi,

Just so i understand, you want the Vlookup to look at a second sheet, but the columns may not be in the same order?
Will they always have the same headings?

Thanks
Dan

The columns are in same order but the rows are not in any ordered format.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,519
Messages
5,596,635
Members
414,083
Latest member
Mrsash

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
Top