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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,215,350
Messages
6,124,439
Members
449,160
Latest member
nikijon

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