INDEX when a cell has multiple text and return a value

evolive

New Member
Joined
Jul 12, 2019
Messages
2
Hi Everyone,

I have this formula that I got working for what I want and now I am trying to add another level of complexity to it.

Below is the formula I use to search for a Person's name and if that person's name matches then it will show the task assigned to that person.

=IFERROR(INDEX(Table2[Projects],SMALL(IF(Table2[Owner]=B$1,ROW(Table2[Owner])-10,""),ROWS(C$3:C3))),"")

This formula works well for unique names, but imagine I have two people assigned to it (e.g., "Person 1, Person 2" or "Person 1 Person 2"). The formula above cannot differentiate. I tried to search for string text, find, match but cannot incorporate into above.

I do not want to create a separate cell where I match Person 1, Person 2 with the task as I feel that is unnecessary. I would like to avoid macros or vb. below is basically what I would like to accomplish
=IFERROR(INDEX(Table2[Projects],SMALL(IF(Table2[Owner]=return table2[project] if cell contains any of these names,ROW(Table2[Owner])-10,""),ROWS(C$3:C3))),"")

Any help would be appreciated.

If you have the time, also how to bring over the cell formatting (fill color) over to where it's being called out. From what I have searched VB is the only method.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Maybe something like this:
Excel Workbook
ABCDE
1ProjectOwnerOwnerProjects
2Pro1Person1Person2Pro3
3Pro2Person3Pro6
4Pro3Person1, Person2Pro8
5Pro4Person4
6Pro5Person5
7Pro6Person2, Person4
8Pro7Person3
9Pro8Person2
10Pro9Person5
Sheet
 
Upvote 0
Hi AhoyNC,

This worked out great. Thank you very much!

New post later to copy over cell (fill color) formatting.

Thank you again AhoyNC.
 
Upvote 0
You're welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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