If partial match show certain word

Thunder76

New Member
Joined
Jul 21, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Really hoping someone will be kind enough to help me with this formula.

I have a rota schedule that certain people are on for certain days of the week. For instance if person 1 worked Monday then i would their name to appear in column D.

I would ideally like it to check column B4 and if it says Monday then should display 'Person 1' in Column D4. If B4 has Tuesday within the long date field then it should show 'Person 2' in Colmn D4. There is a different person for each of the seven days.

Any help would be amazing!

thanks
Simon
 

Attachments

  • Capture.PNG
    Capture.PNG
    7.6 KB · Views: 7

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
But where is the name list which is associated with each day??
 
Upvote 0
are these dates formatted to also show the day - or just Text entries
if just Text
this will put person 1 in the field
="person "&WEEKDAY(VALUE(LEFT(E2,10)),2)

You could have a List of names and use that to lookup the name
Using a Weeknumber on the DATE or by using the DAY text
Book1
EFGHIJK
1
201/08/2020 SaturdaySaturday P1Monday Person
302/08/2020 SundaySunday P2Tuesday P
43Wednesday P
54Thursday P
65Friday P
76Saturday P
87Sunday P
9
Sheet1
Cell Formulas
RangeFormula
G2:G3G2=VLOOKUP(WEEKDAY(VALUE(LEFT(E2,10)),2),$I$2:$J$8,2,FALSE)
 
Upvote 0
Wayne
Thank you so much for responding so quickly.

This worked perfecly (the Vlookup).

Thanks again - you have saved my evening :)
Simon
 
Upvote 0

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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