Little difficult vlookup

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,224
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I am doing vlookup in 2 Excel workbooks.
Workbook1:
column D contains either value or null (through formula).
Workbook2:
Column X contains either 1 or 0.
How to get corresponding column D value (in Workbook2, column Y) if column X=1. For column X=0, answer required is null.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You could use an IF like this:
IF( Workbook2!ColumnX = 1; Workbook1ColumnD; NULL)
or IF( Workbook2!ColumnX = 1; Workbook1ColumnD; "")

HTH

[edit]
Instead of ColumnD you will have to use your VLOOKUP function there of course..
Depending on where the lookup value is:
IF( Workbook2!ColumnX = 1; VLOOKUP(LookupValue; Workbook1; ColumnD); NULL)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,749
Messages
6,132,496
Members
449,730
Latest member
SeanHT

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