Counting days between two dates but stopping the count on a third date

Lifsgd

New Member
Joined
May 30, 2019
Messages
2
Column A is a date a ticket is opened
Column B is today’s date
Column C counts the days between A & B
Column D is the date the ticket is closed

I want column C to count the days between A & B, which it currently does using
=DAYS([@[Today”a Date]],[@[Date Opened]])

but I want the days in column C to stop counting and hold the value when a date is put in column D

Please help with the formula!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
If B is to be today all the time you don't need that column, you could use Today().
Give this a try:
Code:
=DAYS(IF(IF(D2="",999999,D2) < B2,D2,B2), A2)
<b2,d2,b2),a2)[ code]

Column B is replaced by column D value if there is an entry and the entry is less than B's value<b2,d2,b2),a2)[ code]<="" html=""></b2,d2,b2),a2)[></b2,d2,b2),a2)[>
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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