Count total days between opened date and today ()

mayoung

Active Member
Joined
Mar 26, 2014
Messages
259
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
A B C
[TABLE="width: 500"]
<tbody>[TR]
[TD]OPENED DATE[/TD]
[TD]CLOSED DATE[/TD]
[TD]TOTAL DAYS[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

LOOKING FOR FORMULA TO COUNT TOTAL DAYS (C2) (INCLUDING WEEKENDS AND HOLIDAYS), BETWEEN TODAY () MINUS OPENED DATE (A2) AND STOP COUNT (FREEZE) ONCE CLOSED DATE IS ENTERED (B2).
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,

Is this what you mean?


Book1
ABCD
1Opened DateClosed DateTotal DaysOpen/Today insclusive
28/1/20181314
38/1/20188/13/20181213
Sheet185
Cell Formulas
RangeFormula
C2=IF(B2="",TODAY()-A2,B2-A2)
D2=IF(B2="",TODAY()-A2+1,B2-A2+1)
 
Upvote 0
Not sure what you mean by STOP COUNT. Does this do what you want?
Code:
IF(B2="",TODAY()-A2,B2-A2)
 
Upvote 0
Hi,

Is this what you mean?

ABCD
Opened DateClosed DateTotal DaysOpen/Today insclusive

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]
[TD="align: right"]8/1/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]14[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]8/1/2018[/TD]
[TD="align: right"]8/13/2018[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]13[/TD]

</tbody>
Sheet185

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C2[/TH]
[TD="align: left"]=IF(B2="",TODAY()-A2,B2-A2)[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]=IF(B2="",TODAY()-A2+1,B2-A2+1)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Thank You worked great!
 
Upvote 0
if you remove the open date in cell A2 cell C2 will show 43339 and cell D2 SHOWS 43340. Is there away to make it show zero?
 
Upvote 0
if you remove the open date in cell A2 cell C2 will show 43339 and cell D2 SHOWS 43340. Is there away to make it show zero?

Here you go:


Book1
ABCD
1Opened DateClosed DateTotal DaysOpen/Today insclusive
28/1/20182627
300
48/1/20188/13/20181213
Sheet212
Cell Formulas
RangeFormula
C2=IF(A2="",0,IF(B2="",TODAY()-A2,B2-A2))
D2=IF(A2="",0,IF(B2="",TODAY()-A2+1,B2-A2+1))
 
Upvote 0

Forum statistics

Threads
1,223,970
Messages
6,175,721
Members
452,667
Latest member
vanessavalentino83

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