If vlookup does not MATCH then ONLY get the column value

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,213
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I am having 2 workbook. I want to vlokkup / extract the relevant column values if Lookup_value DOES NOT MATCH.
Ex:
Workbook1
A1=PPP-00099
Workbook2
C1=PPP-00088 E1=786
In F1 (of Workbook2), answer would be 786 since C1 DOES NOT MATCH with A1.
If matched, answer required="" (null).
How to accomplish?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I am having 2 workbook. I want to vlokkup / extract the relevant column values if Lookup_value DOES NOT MATCH.
Ex:
Workbook1
A1=PPP-00099
Workbook2
C1=PPP-00088 E1=786
In F1 (of Workbook2), answer would be 786 since C1 DOES NOT MATCH with A1.
If matched, answer required="" (null).
How to accomplish?

Assumnig your data are in Sheet1 on each workbook and you are compering row by row
=IF(A1<>'[Workbook 2.xlsx]Sheet 1'!$C$1,'[Workbook 2.xlsx]Sheet 1'!$E$1,"")
 
Upvote 0
But even if A999 (of Workbook1)=PPP-00088 i.e. MATCHES with C1 (of Workbook2), then answer F1=786
 
Upvote 0
I've just done this in a single sheet but if it does what you want you should be able to adapt to your different workbook scenario.

Formula is copied down.

Excel Workbook
ABCDEF
1PPP-00099PPP-00088786 
2PPP-09872PPP-09777123123
3PPP-09873
4PPP-00088
5PPP-00003
6
Check for match
 
Upvote 0
Formula works fine but I am FORCED to keep open Workbook1 else I get #VALUE! in Workbook2 !!!
 
Upvote 0
Formula works fine but I am FORCED to keep open Workbook1 else I get #VALUE! in Workbook2 !!!
Try this

Open both workbooks.

In Cell F1 of Workbook2 put this formula

=IF(ISNA(MATCH(C1,'[Workbook1.xlsx]Data List'!$A$1:$A$1000,0)),E1,"")

Adjust the name of Workbook1 and the relevant sheet name in this formula if they are not what I have above.

Copy the formula down.

You can now close Workbook1 and the formulas should still work. Note that when you close Workbook1, the formulas in column F of Workbook2 will change to reflect the full path and name of Workbook1.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,844
Members
449,051
Latest member
excelquestion515

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