Calculations Based on Day of the Week

bals2oo8

New Member
Joined
Mar 28, 2017
Messages
2
I've created a calendar and I need for it to auto calculate occurrences based on the value placed in the cell. I have this working as I'd like, but I'm having issues with specific days of the week, Monday and Friday. These 2 days are considered high volume days and I need it to multiply the occurrence by 2, no matter which value is used while also only counting any other day's values by 1, or by not multiplying them.

Example:
I call in to work on Tuesday so a "C" is placed in that cell. It should calculate this value, "C", as 1 point. But if I call in on Monday, it should calculate it as "C*2"
Using =countif(A5:G23,"C") currently to calculate when C is used and this adds to the to total occurrences. Which works, but doesn't take into consideration if the "C" falls onto a Monday or Friday.

I hope I'm being clear.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I'm guessing that Mondays are in Row A and Fridays in Row E, so if you could Count the entire range first, then count Monday and Friday a second time then could you use:
=COUNTIF(A5:G23,"C") + COUNTIF(A5:A23,"C") + COUNTIF(E5:E23,"C")

Hope that works
Regards
Alan
 
Upvote 0
You can use this formula

=SUM(COUNTIF(INDIRECT({"A5:A23","A5:G23","E5:E23"}),"c"))
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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