Nested VLookups?

NJS1982

Board Regular
Joined
Sep 24, 2009
Messages
186
Office Version
  1. 365
Platform
  1. Windows
Hi, does anybody know if it is possible to use two VLookup formuals in one cell, then present the result of that formula to display one answer?

Currently I have two columns, to identify from another set of data, postcodes.

Column T formula is: =VLOOKUP(A5,'Org Postcodes'!$A$1:$J$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$J$1,0),0)
Column U formula is: =VLOOKUP(A5,'Org Postcodes'!$A$1:$J$105190,MATCH("PROJECT_CONTACT_POSTCODE",'Org Postcodes'!$A$1:$J$1,0),0)

I then have a third formula that will check to see if there is anything in column T, and use it. If T is '(blank)', then it should present the return in column U:

Column V formula is: =IF(LEN(T5)+LEN(U5)=2,AA5,IF(LEN(T5)<>1,T5,U5))

I just wondered if there was any way of combining these into one cell, so I have one column and not three?

Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Sure you can do that. Its an important skill to learn so i want just tell you the formula ill guide you through. In your column V formula you see T5 and U5. Replace the T5 with the formula in T5 (except the = sign). So go to cell T5. In the formula bar highlight:

VLOOKUP(A5,'Org Postcodes'!$A$1:$J$105190,MATCH("ORGANISATION_POSTCODE",'Org Postcodes'!$A$1:$J$1,0),0)

Press control C. Press escape key. Go to column V5 and hightlight T5 in the formula bar. Press control V. Repeat for each instance of T5. Do the same for U5.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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