Formula to calculate values between two dates with a variable if the cell is blank

wylie27

New Member
Joined
Jul 31, 2012
Messages
24
Hello all,

i have a scenario which i am sure is fairly simple to resolve but i have been away from Excel way too long.

I am attempting to calculate the number of days open a ticket was / has been open for a dashboard.

Column A: has opened Date
Column B: Has closed Date.
Colum C: Days Open
Column I: =today()

openedcloseddays open1/5/20
1/1/201/2/201
1/1/204

However not all tickets have been closed and i would like to workout how many days they have been opened for. Is this possible in the same formula?

it feels like a nested if statement, but i am out of my depth here..

Any help would be appreciated.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Book1
ABCD
1openedcloseddays open1/5/2020
21/1/20201/2/20201
31/1/20204
Sheet3
Cell Formulas
RangeFormula
C2:C3C2=IF(A2="","",IF(B2="",$D$1-A2,B2-A2))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,387
Messages
6,119,225
Members
448,877
Latest member
gb24

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