Simple formula help

Excel91

New Member
Joined
Sep 17, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Im trying to set up a document to show the differences in days between 2 cells = Example: A1 has a planned date, B1 has an Actual, C1 has the difference, i have used =B1-A1 in cell C1 but if cell B1 is empty it is bringing back a number of "45448", why is this? What is the best formula to use?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
i think u just change format cell to Date / Short Date, or u can use #Text Formula, like
Excel Formula:
=IFERROR(TEXT(B1-A1,"DD MMM YYY"),A1)
 
Upvote 0
i think u just change format cell to Date / Short Date, or u can use #Text Formula, like
Excel Formula:
=IFERROR(TEXT(B1-A1,"DD MMM YYY"),A1)[/CODE
[/QUOTE]
Im not trying to get a date in Column C1, i need to know the differences in dates by amount of Days either early or late
 
Upvote 0
Hi & welcome to MrExcel.
What do you want to see if B1 is empty?
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,357
Members
451,642
Latest member
mirofa

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