Aging formula with unknown dates

S

Serendipity

I have a problem I am hoping someone can help me with. Here is what I am
calculating:
A = Work Completion Date
B = Fixed Price Date
C = Receipt Date
D = Invoice Date
E = Difference between A + B
F = Difference between A + C
G = Difference between A + D
H = Difference between B + C
I = Difference between C + D

For E the formula I am using is: =IF(B1=0,TODAY()-$A$1,B1-$A$1)
For F the formual I am using is: =IF(C1=0,TODAY()-$A$1,C1-$A$1)
For G the formula I am using is: =IF(D1=0,TODAY()-$A$1,D1-$A$1)
For H the formula I am using is: =C1-B1
For I the formula I am using is: =D1-C1

Things work except when A has no date in it. What do I add to my formula in
E-G to result in 0 or leaving the cell blank when that purchase order work
has not been completed? The results of these calculations will be used in
pivot tables, charts, and conditional formatting so the answers of 39,679 or
so that I get when this is the case, plays havoc in them. This is a backwards
AR tracking that I am tracking due to a vendor not billing us for work
completed in the contracted time period and I need to know how many days have
elapsed between the 4 dates to determine whether the invoice can be paid, or
needs to be penalized according to the contract.

Thank you
 
S

Serendipity

I tried this with no luck.
=IF($T17="","",(V17=0,TODAY()-$T17,V17-$T17))
and
=IF($T17="","",V17=0,TODAY()-$T17,V17-$T17)

The formula that works except for the wrong answers is:

=IF(V17=0,TODAY()-$T17,V17-$T17)

V17 = no date
T17 = no date or with a date

and the answer I am getting is 39679 or in that neck of the woods.

What did I do wrong?

Thanks,
 
S

Serendipity

THANK YOU!!!!! You are awesome....
I took the = and if out instead of just the =.
Thank you again and again... you just saved me a lot of time!

Serendipity
 

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