If a cell contains a different word can you get it to do a vlookup on a different column

daza34

Board Regular
Joined
Feb 14, 2017
Messages
70
Hi,

I have rows of data that has a specific word in them that has to look up against a certain column

23_OCC Collaborate Needs to look up to Column BP on a separate sheet
23_OCC VOICE Needs to look up on Column BQ on a separate sheet

If i look at just one column both rows will get the same result which is not the case, also need the look up to show blank if there are not any values in that column.

Office 365
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You don't give us enough information about where this value is, where the result comes from, the other sheet name, or anything else about your data, or your version of Excel. Here is a solution for later versions with some assumptions.

Excel Formula:
=IFERROR(XLOOKUP(A1,IF(A1="23_OCC Collaborate",Sheet2!BP:BP,IF(A1="23_OCC VOICE",Sheet2!BQ:BQ)),Sheet2!X:X),"")

A1 is where this value is, Sheet2 is the name of the other sheet, X is the column to retrieve the result from.
 
Upvote 0

Forum statistics

Threads
1,221,504
Messages
6,160,199
Members
451,630
Latest member
zxhathust

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