RaviWildcat
Board Regular
- Joined
- Jun 18, 2010
- Messages
- 124
- Office Version
- 365
- Platform
- Windows
- MacOS
Hello Excel Experts!
I've got a column of dates, formatted as Day, Date, Year. And, I'd like to count all the Sundays using an array formula (like countif)
So,
Sunday, January 6, 2019
Monday, January 7, 2019
Tuesday, January 8, 2019
etc.
It's easy as pie to create a helper column, just adjacent to these dates (text(c167,"Dddd"), and then create a countif using the helper column (countif(B100:b200,"Sunday")
What would be the syntax for creating this without a helper column?
I figured it might be a CSE function like {COUNTIFS(C34:C167,LEFT(TEXT($C$34:$C$167,"Dddd"),3)="Sun")} but that doesn't work and I'm not sure why?
Any ideas?
Thanks,
Ravi
I've got a column of dates, formatted as Day, Date, Year. And, I'd like to count all the Sundays using an array formula (like countif)
So,
Sunday, January 6, 2019
Monday, January 7, 2019
Tuesday, January 8, 2019
etc.
It's easy as pie to create a helper column, just adjacent to these dates (text(c167,"Dddd"), and then create a countif using the helper column (countif(B100:b200,"Sunday")
What would be the syntax for creating this without a helper column?
I figured it might be a CSE function like {COUNTIFS(C34:C167,LEFT(TEXT($C$34:$C$167,"Dddd"),3)="Sun")} but that doesn't work and I'm not sure why?
Any ideas?
Thanks,
Ravi