Search multiple cells for data "containing" a text string...then return the information from that cell

Hat4Life

New Member
Joined
Apr 18, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to figure out if there is a formula that will let me search multiple contiguous cells for a cell that contains a specific text string. If that value is found, I need the formula to display that text string.

Example: I have 27 cells in a row. Each cell contains a unique product SKU. I want to search all 27 cells and return the value of the cell that contains the text string "HD"

I tried: =MATCH("*-HD*",CI17:CM17,0), but that did not work. Any suggestions would be greatly appreciated.
 

Attachments

  • Lookup formula.JPG
    Lookup formula.JPG
    41.7 KB · Views: 5

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Try:
Excel Formula:
=FILTER(A2:G2,ISNUMBER(SEARCH("HD",A2:G2)),"Not found")
 
Upvote 0
Try:
Excel Formula:
=FILTER(A2:G2,ISNUMBER(SEARCH("HD",A2:G2)),"Not found")
That worked exactly how I was hoping something would! Thank you. I had to search 27 cells and knew I could not embed that many "if" formulas in one cell.
 
Upvote 0

Forum statistics

Threads
1,215,338
Messages
6,124,346
Members
449,155
Latest member
ravioli44

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