Return the corresponding row header based text contained in data set.

Manny Wilkins

New Member
Joined
Aug 31, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I want to return the relative name from column A in cell B16 if the data set = "ORS". I wrote the following formula and it works fine.
=@IF(COUNTIF($B$6:$D$13,"ORS")>1,"Check Call Schedule",INDEX($A$6:$A$13,SUMPRODUCT(($B$6:$D$13="ORS")*(ROW($A$6:$A$13)-ROW($A$5))),))

This Issue:
However, sometimes the user will add other text to this designation such as ORS/GOP. I need the formula find the text ORS in any cell in the array, even if it is combined with other designations.
 

Attachments

  • 2020-09-01_8-45-54.png
    2020-09-01_8-45-54.png
    15.6 KB · Views: 20

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi & welcome to MrExcel.
How about
=IF(COUNTIF($B$6:$D$13,"*ORS*")>1,"Check Call Schedule",FILTER(A6:A13,(ISNUMBER(SEARCH("ORS",B6:B13)))+(ISNUMBER(SEARCH("ORS",C6:C13)))))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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