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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
Hi & welcome to MrExcel.
What do you want to see if B1 is empty?
Just for it to be blank, and if B1 has a date that's different to A1 then the difference is shown in days late or early in C1
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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