Count between dates excluding blanks

louisanolan

New Member
Joined
Feb 27, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have looked through so many threads on here and I can't find the answer to my question so I'm hoping someone can help with a formula.


I have a spreadsheet with the date something started (B3) and then with the date something ended (AM3) - I have a formula which counts the number of days it has been between the date it started and today's date, unless there is something in the end date and then to count between those dates (if that makes sense?!) which does that:

=IF(AM3>0,AM3-B3,TODAY()-B3)

However I need to add in 'Don't bring back anything if B3 (Date something started) is blank' into it and I can't for the life of me work out how to add that in....

Can anyone help at all?

Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(B3="","",IF(AM3>0,AM3-B3,TODAY()-B3))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

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