Countif or Sumifs help needed

Wimpie

Board Regular
Joined
Aug 12, 2008
Messages
210
Good day

Please note that I have a Sheet called "Daily"
In this sheet I have the following:
Column C is in [HH]:mm
ABC
DateDayHrs Driven
2016/09/23Friday
2016/09/24Saturday
2016/09/25Sunday
2016/09/26Monday
2016/09/27Tuesday
2016/09/28Wednesday
2016/09/29Thursday
2016/09/30Friday
2016/10/01Saturday03:53
2016/10/02Sunday02:49
2016/10/03Monday04:01
2016/10/04Tuesday04:38
2016/10/05Wednesday01:48

<tbody>
</tbody>


In a Sheet called "Cycle" I have the following:
I need Column F of the "Cycle" sheet to count the Saturdays in the "Daily" Sheet if there is hours in Column C, between the dates in Column B and C in the "Cycle" sheet.
BCF
Date FromDate toSaturdays Worked Count
2016/09/192016/10/16
2016/10/172016/1113

<tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This should get you started:


Excel 2016 (Windows) 32 bit
ABCDEFGH
1ABCBCF
2DateDayHrs DrivenDate FromDate toSaturdays Worked Count
323/09/2016Friday19/09/201616/10/20161
424/09/2016Saturday17/10/201613/11/20160
525/09/2016Sunday
626/09/2016Monday
727/09/2016Tuesday
828/09/2016Wednesday
929/09/2016Thursday
1030/09/2016Friday
1101/10/2016Saturday03:53
1202/10/2016Sunday02:49
1303/10/2016Monday04:01
1404/10/2016Tuesday04:38
1505/10/2016Wednesday01:48
Sheet1
Cell Formulas
RangeFormula
H3=COUNTIFS($B$3:$B$15,"Saturday",$C$3:$C$15,"<>",$A$3:$A$15,">="&F3,$A$3:$A$15,"<="&G3)
 
Upvote 0
Hi AliGW

Forgot to mention that Column C in the daily file has the below formula
=IF(SUMIF(Data!D:D,A2,Data!O:O)=0,"",(SUMIF(Data!D:D,A2,Data!O:O)))
This is causing your formula to count all the Saturdays
 
Upvote 0
Hi
I changed the "<>" in your formula to ">0" and that worked perfectly.
Thank you so much
 
Upvote 0
Not too hard to overcome:

=COUNTIFS($B$3:$B$15,"Saturday",$C$3:$C$15,">0",$A$3:$A$15,">="&F3,$A$3:$A$15,"<="&G3)
 
Upvote 0

Forum statistics

Threads
1,214,587
Messages
6,120,406
Members
448,958
Latest member
Hat4Life

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