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

Hat4Life

New Member
Joined
Apr 18, 2024
Messages
5
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: 48

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,814
Messages
6,181,123
Members
453,021
Latest member
Justyna P

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