Days counter (excluding weekends)

msword

New Member
Joined
Oct 23, 2020
Messages
46
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Hi. I wonder is Excel powerful enough to create days counter that skips weekends(gray squares in a pic):
1626253394716.png

Let's imagine that my goal is to do 2 push ups a day and I am using excel table to track the progress. Since July 13th is the 1st day of my workout program, by July 20 I need to make 6*2=12 push ups total (excluding Saturday(July 17) and Sunday(July 18)) etc.
There is no problem with calculation of the real number of push ups just utilizing the SUM() function. But how to determine the July 20 (or respectively any other white cell) as a 6th day and bound it somehow to current date to observe my progress in % in real time. Of course it should be updated automatically each day.
For example by July 20 I need to make 12 push ups. But I skipped 1 day and made only 10 push ups which is only 83% of the planned work.
Basically I want to made Excel to calculate that 83% for me.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Is this 2 pushups a day cumulative so that on day 2 you should be doing 4 pushups and on day 3 you should do 6 pushups?
 
Upvote 0
The short answer is yes, Excel can do this using the NETWORKDAYS function to get the denominator of your percent calculation as below

Excel Formula:
=NETWORKDAYS(7/13/2021,TODAY())*2
 
Upvote 0
PushUps.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1Start Date7/7/2021
2Target per Day2
3Target to Date12
4Total Completed10
5Total Completed Today2
6Pct Completed83%
7
812345678910111213141516171819202122232425262728293031
10July222022
12August
14September
16October
18November
20December
21
Sheet2
Cell Formulas
RangeFormula
C3C3=NETWORKDAYS(StartDate,TODAY())*TargetPerDay
C4C4=SUM(C10:AG10,C12:AG12,C14:AG14,C16:AG16,C18:AG18,C20:AG20)
C5C5=INDEX(Data,MATCH(MONTH(TODAY()),Months,0),MATCH(DAY(TODAY()),Days,0))
C6C6=+TotalCompleted/TargetToDate
B10B10=DATE(YEAR($C$1),MONTH($C$1),1)
B12,B20,B18,B16,B14B12=+B10+31
 
Upvote 0
Solution
Thanks a lot for this response. Sounds like a magic to me. I really appreciate you created this sheet for me.
But when I tried to reproduce this "Target to Date" returning me just a bulk date like 3-jan-00, not a number.

routine 2021.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
212345678910111213141516171819202122232425262728293031
3JULYxxxxxxxxxxxx1xxxxx
4AUGUSTxxxxxxxxx
5SEPTEMBERxxxxxxxxx
6OCTOBERxxxxxxxxxx
7NOVEMBERxxxxxxxxx
8DECEMBERxxxxxxxx
9
10start day13-Jul-21
11target per day2
12target to date3-Jan-00
13total completed1
coding
Cell Formulas
RangeFormula
B12B12=NETWORKDAYS(B10, TODAY())
B13B13=SUM(B3:AF8)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:AF3Cell Valuebeginning with "ex"textNO
B8:AF8Cell Valuebeginning with "ex"textNO
B8:AF8Cell Valuebeginning with "x"textNO
B8:AF8Cell Valuebeginning with "0"textNO
B8:AF8Cell Valuebeginning with "1"textNO
B7:AF7Cell Valuebeginning with "ex"textNO
B7:AF7Cell Valuebeginning with "x"textNO
B7:AF7Cell Valuebeginning with "0"textNO
B7:AF7Cell Valuebeginning with "1"textNO
B6:AF6Cell Valuebeginning with "ex"textNO
B6:AF6Cell Valuebeginning with "x"textNO
B6:AF6Cell Valuebeginning with "0"textNO
B6:AF6Cell Valuebeginning with "1"textNO
B5:AF5Cell Valuebeginning with "ex"textNO
B5:AF5Cell Valuebeginning with "x"textNO
B5:AF5Cell Valuebeginning with "0"textNO
B5:AF5Cell Valuebeginning with "1"textNO
B4:AF4Cell Valuebeginning with "ex"textNO
B4:AF4Cell Valuebeginning with "x"textNO
B4:AF4Cell Valuebeginning with "0"textNO
B4:AF4Cell Valuebeginning with "1"textNO
B3:AF3Cell Valuebeginning with "x"textNO
B3:AF3Cell Valuebeginning with "0"textNO
B3:AF3Cell Value=1textNO
B3:AF3Cell Value=2textNO
 
Upvote 0
Thanks a lot for this response. Sounds like a magic to me. I really appreciate you created this sheet for me.
But when I tried to reproduce this "Target to Date" returning me just a bulk date like 3-jan-00, not a number.

routine 2021.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAF
212345678910111213141516171819202122232425262728293031
3JULYxxxxxxxxxxxx1xxxxx
4AUGUSTxxxxxxxxx
5SEPTEMBERxxxxxxxxx
6OCTOBERxxxxxxxxxx
7NOVEMBERxxxxxxxxx
8DECEMBERxxxxxxxx
9
10start day13-Jul-21
11target per day2
12target to date3-Jan-00
13total completed1
coding
Cell Formulas
RangeFormula
B12B12=NETWORKDAYS(B10, TODAY())
B13B13=SUM(B3:AF8)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:AF3Cell Valuebeginning with "ex"textNO
B8:AF8Cell Valuebeginning with "ex"textNO
B8:AF8Cell Valuebeginning with "x"textNO
B8:AF8Cell Valuebeginning with "0"textNO
B8:AF8Cell Valuebeginning with "1"textNO
B7:AF7Cell Valuebeginning with "ex"textNO
B7:AF7Cell Valuebeginning with "x"textNO
B7:AF7Cell Valuebeginning with "0"textNO
B7:AF7Cell Valuebeginning with "1"textNO
B6:AF6Cell Valuebeginning with "ex"textNO
B6:AF6Cell Valuebeginning with "x"textNO
B6:AF6Cell Valuebeginning with "0"textNO
B6:AF6Cell Valuebeginning with "1"textNO
B5:AF5Cell Valuebeginning with "ex"textNO
B5:AF5Cell Valuebeginning with "x"textNO
B5:AF5Cell Valuebeginning with "0"textNO
B5:AF5Cell Valuebeginning with "1"textNO
B4:AF4Cell Valuebeginning with "ex"textNO
B4:AF4Cell Valuebeginning with "x"textNO
B4:AF4Cell Valuebeginning with "0"textNO
B4:AF4Cell Valuebeginning with "1"textNO
B3:AF3Cell Valuebeginning with "x"textNO
B3:AF3Cell Valuebeginning with "0"textNO
B3:AF3Cell Value=1textNO
B3:AF3Cell Value=2textNO
Format the cell to a number format for Target Date
 
Upvote 0
You're welcome! Please mark my post as the solution to your question.
 
Upvote 0
What if I want to go even deeper, and see changes history for each day in % on a chart, which also should be updated automatically is it possible?
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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