Conditional Difference between two dates

C

charles.kendricks

I have a sheet in which two column are the start date and the end date.
All of the records contain a start date but not all contain an ending
date. How do I, in a third column calculate the difference between the
end date and start date (only if there is an end date present), to give
me the total days or a null if the end date is not present. Also how
do I copy that formula to all the cells in the column????
 
D

Dougal

I have a sheet in which two column are the start date and the end date.
All of the records contain a start date but not all contain an ending
date. How do I, in a third column calculate the difference between the
end date and start date (only if there is an end date present), to give
me the total days or a null if the end date is not present. Also how
do I copy that formula to all the cells in the column????

Hi,

You can use a formula like this:

=IF(B1<>"",B1-A1)

Dom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top