Help with multiple value search and return using index match

Engine1911

New Member
Joined
Oct 6, 2018
Messages
3
Hi all,

First time posting. So I am creating a manpower document for our firehouse. The simple explanation of it is, one master sheet that has everyone's names in column A ad monthly dates in rowA A . At the intersections are drop down menus with specific values to designate on shift, off shift, overtime, leave, etc.. Then I have individual sheets for each day of the month which pull data from the master sheet and assign personnel accordingly. Currently I have a macro that will search for a value from a designated cell (example "T") and list the names in the cells I have assigned in descending order. What I am looking for is the ability to also have it return names that have other values such as "OT" or "TT". Is this possible? Here is the macro I am currently using:

=IF(ISERROR(INDEX(Master!$B$6:$B$78,SMALL(IF(Master!$C$6:$C$78=Master!$AI$2,ROW(Master!$C$6:$C$78)),ROW(1:1))-5)),"",INDEX(Master!$B$6:$B$78,SMALL(IF(Master!$C$6:$C$78=Master!$AI$2,ROW(Master!$C$6:$C$78)),ROW(1:1))-5))
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,214,386
Messages
6,119,214
Members
448,874
Latest member
b1step2far

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