Using SUMIFS with Weekday code or Alternative.....

madmiddle

New Member
Joined
Mar 8, 2012
Messages
45
Afternoon folks,

I created a spreadsheet to monitor my time at work and also the overtime. now the rates vary from weekday to the weekend so I was trying to use a SUMIFS to count the weekday over time i had done in a certain period (usually 4 week blocks) and then another one to count the weekend overtime.

Now i have got part of this working with the following code:

Code:
=SUMIFS('Flexi Planner'!N4:N402,'Flexi Planner'!C4:C402,">="&'Core Hours & Dates'!G3+1,'Flexi Planner'!C4:C402,"<="&'Core Hours & Dates'!G4)

but trying to add the last criteria i'm struggling with and can't seem to get it working:

Code:
=SUMIFS('Flexi Planner'!N4:N402,'Flexi Planner'!$C4:$C402,WEEKDAY('Flexi Planner'!$C4:$C402,2)&">5")

Can you use the WEEKDAY function within a SUMIFS function, and if it doesn't how else can i do this.


Flexi Planner N4:N402 = if I have gained any overtime then it will appear in this column
Flexi Planner C4:C402 = Dates of the year starting from 02/01/2017 as that was the first monday of the year


Thank you in advance for looking

mad
 
Last edited:

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Sumifs can't manipulate the criteria range, it can only evaluate it exactly as it exists in the cells.
Try a helper column.
In say D4 and filled down for example
=WEEDKAY(C4,2)

Then use
=SUMIFS('Flexi Planner'!N4:N402,'Flexi Planner'!$D4:$D402,">5")
 
Upvote 0
Sumifs can't manipulate the criteria range, it can only evaluate it exactly as it exists in the cells.
Try a helper column.
In say D4 and filled down for example
=WEEDKAY(C4,2)

Then use
=SUMIFS('Flexi Planner'!N4:N402,'Flexi Planner'!$D4:$D402,">5")

Thought that was the case. Thank you
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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