In the attached workbook, I need to count the number of occourances of each day of the week. Any help would be greatly appreciated!
Sick
In the attached workbook, I need to count the number of occourances of each day of the week. Any help would be greatly appreciated!
Sick
Last edited by sick stigma; 05-12-2012 at 12:15 PM.
Try,
=SUMPRODUCT((TEXT($B$12:$B$100,"ddd;;;")="Sun")+0)
Adjust the range & Days
Regards,
Haseeb Avarakkan
__________________________________
"Feedback is the breakfast of champions"
see if the attached is what you want?
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Try
=SUMPRODUCT(--(WEEKDAY(B12:B100)=1))
Found my problem! Cell must be formatted to number, not date! Duh!!
Thanks to all for your suggestions!
Solved "Regrettably, each suggestion returns a date (Friday, January 06, 1900),
not a count or sum of count. What am I doing wrong??????"
Last edited by sick stigma; 05-12-2012 at 12:14 PM. Reason: solved
Using your posted workbook, here's one approach for counting Saturdays:
B5: =SUMPRODUCT((WEEKDAY(B12:B112)=7)*(B12:B112>0))
Is that something you can work with?
Last edited by Ron Coderre; 05-11-2012 at 07:17 PM. Reason: Removed unnecessary chars from formula
that's just a formatting issue, format cell with formula as general
Audere est facere
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks