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
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
63,302
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
63,302
Office Version
  1. 365
Platform
  1. Windows
No worries!
Glad it worked out for you.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,984
Messages
5,834,710
Members
430,311
Latest member
JAC0617

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