Conditional formula , maybe simple but I am stuck.

claustro

New Member
Joined
Nov 23, 2022
Messages
23
Office Version
  1. 2021
Platform
  1. Windows
Hi ,
I need help with conditional formulas.
I have an Excel sheet for a Hospital timesheet.
Columns are days row are duties.
The type of duties are :
Morning indicate by a M in column AR
Evening indicated by a P in column AR
Ready for Availability by a R in column AU
What I would like to achieve is if someone is assigned to an Availability ( R row ) duty on a day it becomes colored if I assign the same employee the next day morning (M row).
I am providing my file where I manually colored what I would like to achieve.
C53 (R in AU) colored because morning on D47 ( M in AR)
F57 ( R in AU ) colored because morning on G47 ( M in AR)

This is what I was thinking about but maybe I am missing something
=SUMPRODUCT((C4=D$4:D$57)*($AU4="R")*($AR4="M")*(C4<>""))>0
Thank you
Andrea

 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Many of the helpers here choose not to download files from other sites or, due to security restrictions at their workplace, are unable to download such files.

You will generally get more potential helpers if you explain your problem clearly in words and, if needed, post a small (copyable) screen shot or two directly in your post. My signature block below has help regarding that - see the XL2BB link.
 
Upvote 0
Thank you for your answer. English isn't my main language so maybe I am having some difficulty trying to explain myself at my best.
I made a screenshot describing what I would like to achieve
This is the formula I come about but it isn't working as intended
=MATR.SOMMA.PRODOTTO((C4=D$4:D$57)*((($AU4="R")+($AR4="M"))*(C4<>"")))>1

Thank you all
 

Attachments

  • timeshift (Media).jpg
    timeshift (Media).jpg
    206.8 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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