Hi,
I have Googled the web and this forum but have yet to yield a solution to my problem that I can understand (as a relative Excel newbie)....
I have two columns that contain dates:
Column A (Expected Delivery Date) contains an imported date with a time attached to it.
Column B (Delivery Date) contains a date without time stamp (it always contains 00:00 as the time).
I am trying to calculate the difference between the two dates using the following simple formula:
=IF(B1>0,(B1-A1),0)
It works fine, but I get erroneous results because column A has a time associated with it and even if the delivery occured on the expected day, the formula reports that there was a difference of one day.
Is it possible to modify the formula to fix this, or is there some way I can create a new column that removes the time element of column A and returns the date with a tiome of 00:00 and then use this new column for my calculation?
I can not change the format of column A - it is automatically extracted from a database that is not within my control.
Many thanks for your help,
tOOnaway
I have Googled the web and this forum but have yet to yield a solution to my problem that I can understand (as a relative Excel newbie)....
I have two columns that contain dates:
Column A (Expected Delivery Date) contains an imported date with a time attached to it.
Column B (Delivery Date) contains a date without time stamp (it always contains 00:00 as the time).
I am trying to calculate the difference between the two dates using the following simple formula:
=IF(B1>0,(B1-A1),0)
It works fine, but I get erroneous results because column A has a time associated with it and even if the delivery occured on the expected day, the formula reports that there was a difference of one day.
Is it possible to modify the formula to fix this, or is there some way I can create a new column that removes the time element of column A and returns the date with a tiome of 00:00 and then use this new column for my calculation?
I can not change the format of column A - it is automatically extracted from a database that is not within my control.
Many thanks for your help,
tOOnaway