VLOOKUP - Return Blank

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
Trying to get the results that I need

If the value searched on (A2 of "Worksheet A") is found in A1:M30 of "Worksheet B"
Then map the according value that exists in column M (column 13)

But if the cell in column M is blank, map blank instead of "0"
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
One way:
Code:
IF([COLOR=#333333]VLOOKUP(A2,'Worksheet B'!$A$1:$M$12,13,FALSE)=0,"",[/COLOR][COLOR=#333333][FONT=Verdana]VLOOKUP(A2,'Worksheet B'!$A$1:$M$12,13,FALSE))[/FONT][/COLOR]
 
Upvote 0
Are the values in column M numeric or text? If text, try:

=INDEX(Sheet2!$M:$M,AGGREGATE(15,6,ROW(Sheet2!$A$1:$M$30)/(Sheet2!$A$1:$M$30=A2),1))&""

if numeric, let me know and I'll get you a (longer) formula.
 
Upvote 0
I apologize. My boss provided me with incorrect information. Upon meeting with her I was able to get the exact specifications of what she is wanting.

I am trying to create a formula that combines VLOOKUP and SEARCH, and then populates the cell that has the formula with a value only if a certain word exists in an according cell.

The formula will be in cell AA5 of the “MIF” Worksheet.
The lookup_value is in H5 of the “MIF” worksheet.
The table_array is C1:P1172 of the “IB” worksheet.
If a matching value is found, then
On the “IB” worksheet, on the row that the matching value was found on, look at column “P” (text cell). If the word “FAX OPTION” exists anywhere in that text array, populate cell AA5 of the “MIF” Worksheet with “FAX OPTION”.
If “FAX OPTION” does not exist anywhere in the according cell of text, cell AA5 will be blank. (no “0” or “#NA”).
 
Upvote 0
If the lookup value can only occur in column C:

=IF(COUNTIFS(IB!C1:C1172,H5,IB!P1:P1172,"*FAX OPTION*"),"FAX OPTION","")

If it can occur anywhere in C1:P1172:

=IF(SUMPRODUCT((IB!C1:P1172=H5)*ISNUMBER(SEARCH("FAX OPTION",IB!P1:P1172))),"FAX OPTION","")
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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