vlookup on excel columns with blanks

starzdust77

New Member
Joined
Jan 26, 2023
Messages
2
Hi, i am trying to vlookup on multiple columns to get the Parent customer number

For example, I have the customer number, and i need to lookup the Reference data table to get the Parent customer number.
If Parent customer number is blank, it needs to lookup Obligor.
If both Parent Customer and Obligor is blank, it will just simply need to return the same customer number.
I have a worked example of the 3 scenarios and attached excel.
1674726774452.png
 

Attachments

  • 1674726636034.png
    1674726636034.png
    5.2 KB · Views: 3

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
try

Book1
ABCDEF
1111555556666611166666
22228888822288888
3333333333
Sheet1
Cell Formulas
RangeFormula
F1:F3F1=IF(AND(VLOOKUP(E1,$A$1:$C$3,3,0)=0,VLOOKUP(E1,$A$1:$C$3,2,0)=0),E1,IF(VLOOKUP(E1,$A$1:$C$3,3,0)=0,VLOOKUP(E1,$A$1:$C$3,2,0),VLOOKUP(E1,$A$1:$C$3,3,0)))
 
Upvote 0
Solution
Hi & welcome to MrExcel.

What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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