Help combing search and vlookup formula

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi and thanks for your assistance. I need to take the results from the vlookup formula below and use that for my search formula.

=VLOOKUP(Info!H2,DATA,3,FALSE)

combine with

=IF(ISNUMBER(SEARCH(Info!H2,$I4))=TRUE,"PNC REST","")

The Info!H2 would be the result from my vlookup formula. I've had many failed attempts to combine these together. Any help would be appreciated.
 
Does the vlookup return text or is it a number?
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
To combine the result of your VLOOKUP formula with the SEARCH formula, you can nest the VLOOKUP formula inside the SEARCH formula. Here's the modified formula:

=IF(ISNUMBER(SEARCH(VLOOKUP(Info!H2, DATA, 3, FALSE),$I4)),"PNC REST","")

This formula will perform a VLOOKUP using the value in Info!H2 as the lookup value, searching for a match in the DATA range. The result of the VLOOKUP (which is the value in the third column of the DATA range) is then used as the search string in the SEARCH function. If the search string is found in cell $I4, it will return "PNC REST". Otherwise, it will return an empty string.

Make sure to adjust the ranges and references in the formula to fit your specific data structure.
 
Upvote 0
@Zaifee That formula has already been suggested & the OP said it didn't work.
Sorry for the delayed response. It returns a number.
In that case the formula should work. Do the two formula in separate cells work?
 
Upvote 0
@Zaifee That formula has already been suggested & the OP said it didn't work.

In that case the formula should work. Do the two formula in separate cells work?
Thank you for all the helpful tips. I did what you alluded to by trying each formula by itself and I found my problem. It now works. Small detail that I missed. Thanks again!
 
Upvote 0
Glad you sorted it & thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,215,168
Messages
6,123,408
Members
449,098
Latest member
ArturS75

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