P
pcar
I have a spreadsheet with the following columns:
Col A - Start Date of Contract
Col B - End Date of Contract
Col C - Start Date of Warranty for Machine
Col D - End Date of Warranty for Machine
Col E - Number of Days on Warranty for the Machine,
WITHIN THE START AND END DATES OF THE CONTRACT
Col F - Number of Days Out of Warranty for the Machine,
WITHIN THE START AND END DATES OF THE CONTRACT
One line might have a "Start Date of Warranty" and "End
Date of Warranty" prior to the "Start Date of Contract";
another might have a "Start Date of Warranty" PRIOR to
the "Start Date of Contract with an "End Date of Warranty"
AFTER the "End Date of Contract"; another will have "Start
Date of Warranty" PRIOR to the "Start Date of Contract"
with an "End Date of Warranty" PRIOR to the "End Date of
Contract", etc, etc. I cannot seem to figure out an @if
formula that will take into account all the variations and
calculate Columns E and F for me. The number of days in
Columns E and F should add up to the total number of days
between start and end of contract; for example, if the
number of days between contract start and end is 365 (one
year), then depending upon the warranty start/end of a
machine, you might have 0 days of warranty and 365 days of
out of warranty; or 60 days of warranty and 305 days of
out of warranty; or 365 days of warranty and 0 days of out
of warranty, etc.
Would appreciate any assistance on this.....thanks.
Col A - Start Date of Contract
Col B - End Date of Contract
Col C - Start Date of Warranty for Machine
Col D - End Date of Warranty for Machine
Col E - Number of Days on Warranty for the Machine,
WITHIN THE START AND END DATES OF THE CONTRACT
Col F - Number of Days Out of Warranty for the Machine,
WITHIN THE START AND END DATES OF THE CONTRACT
One line might have a "Start Date of Warranty" and "End
Date of Warranty" prior to the "Start Date of Contract";
another might have a "Start Date of Warranty" PRIOR to
the "Start Date of Contract with an "End Date of Warranty"
AFTER the "End Date of Contract"; another will have "Start
Date of Warranty" PRIOR to the "Start Date of Contract"
with an "End Date of Warranty" PRIOR to the "End Date of
Contract", etc, etc. I cannot seem to figure out an @if
formula that will take into account all the variations and
calculate Columns E and F for me. The number of days in
Columns E and F should add up to the total number of days
between start and end of contract; for example, if the
number of days between contract start and end is 365 (one
year), then depending upon the warranty start/end of a
machine, you might have 0 days of warranty and 365 days of
out of warranty; or 60 days of warranty and 305 days of
out of warranty; or 365 days of warranty and 0 days of out
of warranty, etc.
Would appreciate any assistance on this.....thanks.