Number of days between dates, leave blank if 0

Wwach

New Member
Joined
Mar 14, 2016
Messages
2
So, it's been a really long time since I've had to use formulas, and I am drawing a complete blank. I am needing the formula for the number of days that have passed since I received a time from when I requested the document, and if I have not received the document yet, then the cell needs to be 0. Can I please request assistance?

EX:
Requested - 4/15/15
Received - 6/12/15
Days passed: 58
 

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,882
Office Version
  1. 365
Platform
  1. Windows
Welcome to the Board!

Not quite clear if you want to return a zero or blank (your description seems to contradict your title)

Zero:
=IF(B1="",0,B1-A1)

Blank:
=IF(B1="","",B1-A1)
 

Wwach

New Member
Joined
Mar 14, 2016
Messages
2
Thank you so much, that worked. And you are correct, I did contradict myself. Sorry!!
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,882
Office Version
  1. 365
Platform
  1. Windows
No worries!
Glad it worked out for you.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,217
Messages
5,594,887
Members
413,947
Latest member
gizmolucy

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
Top