mgirvin
Well-known Member
- Joined
- Dec 15, 2005
- Messages
- 1,245
- Office Version
- 365
- Platform
- Windows
Dear Smartest Excel People In The World,
In B13 I have the start date: 12/1/2008
In C13 I have the end date: 1/5/2009
In cell D13 I want a formula that counts the number of days between the two dates that are not Sunday. The start and end dates are included in the count.
I have created this formula using Ctrl + Shift + Enter:
{=SUM(IF(WEEKDAY(ROW(INDIRECT(B13&":"&C13)),2)<>7,1,0))}
I have also created this formula using Ctrl + Shift + Enter:
{=SUM(IF(TEXT(ROW(INDIRECT(B13&":"&C13)),"ddd")<>"Sun",1,0))}
They both seem to work. I get a result of 31.
Is there a formula that is better than this, more efficient than this, or "less expensive"?
In B13 I have the start date: 12/1/2008
In C13 I have the end date: 1/5/2009
In cell D13 I want a formula that counts the number of days between the two dates that are not Sunday. The start and end dates are included in the count.
I have created this formula using Ctrl + Shift + Enter:
{=SUM(IF(WEEKDAY(ROW(INDIRECT(B13&":"&C13)),2)<>7,1,0))}
I have also created this formula using Ctrl + Shift + Enter:
{=SUM(IF(TEXT(ROW(INDIRECT(B13&":"&C13)),"ddd")<>"Sun",1,0))}
They both seem to work. I get a result of 31.
Is there a formula that is better than this, more efficient than this, or "less expensive"?