How To Match & Pick-Up Partial Text From A Cell Conditionally?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
531
Office Version
  1. 2010
Platform
  1. Windows
Dear All,
I do have a sample data set across A1:D4 as follows:-
Inward DateInward DaySchedule TypeInward Day-Desired(With Formula)
01-AugTuesdayATuesday
02-AugWednesdayBWednesday
04-AugFridayCFriday

<tbody>
</tbody>

There is another table with the Schedule Type across F1:G4 as follows:-
Schedule TypeDescription
ATuesday, Thursday
BMonday, Saturday, Wednesday
CFriday

<tbody>
</tbody>

I am looking at formulae across column D2:D4, which will look at the Inward day(Column B) and then match the schedule type(across column C) with that of the schedule type maintained across F1:G4 and then will populate the day from that.
If there are multiple days mapped under a Schedule Type(Like A &B), the formulae should pick-up the day corresponding day against the inward day.
In case of no matching, it should keep the cell blank under column D.
Pls help.
Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
In D2 enter and copy down:

=IF(ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH($B2,INDEX($G$2:$G$4,MATCH($C2,$F$2:$F$4,0))))),$B2,"")
 
Upvote 0
In D2 enter and copy down:

=IF(ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH($B2,INDEX($G$2:$G$4,MATCH($C2,$F$2:$F$4,0))))),$B2,"")

Dear Mr Aladin & Usman,
Thanks a lot for the amazing solution.
It really will save lots of unwanted manual intervetion.
My heartfelt gratitude to both of you.
Proud to be here in this forum.
Regards
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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