E
ed
Column B is a list of dates, usually in ascending date order, and
column D are number of miles driven on each date to be reimbursed at
different $ per mile rates. Other columns have hours on various dates
to be reimibursed at different pay scales, etc. I'm looking for a
universal formula format I can apply to each type of reimbursement.
For instance I want to convert the total miles driven into dollars,
however, the reimbursement rate per mile has changed several times in
the past. I constructed the following formula. =SUMIF($B:
$B,"<1/1/2004",D
)*0.36+SUMIF($B:
$B,"AND(<9/1/2005,>12/31/2003),D
)*0.375+SUMIF($B:
$B,"AND(<1/1/2006,>9/31/2005),D
)*0.485+SUMIF($B:
$B,"AND(<2/1/2007,>12/31/2005),D
)*0.445+SUMIF($B:
$B,">2/1/2007",D
)*0.485.
The trouble is that the formula doesn't "pick up" values for dates in
the AND time frames. A date in the first and last time periods
(without the AND)records O.K.. Any suggestions?
TIA ed
column D are number of miles driven on each date to be reimbursed at
different $ per mile rates. Other columns have hours on various dates
to be reimibursed at different pay scales, etc. I'm looking for a
universal formula format I can apply to each type of reimbursement.
For instance I want to convert the total miles driven into dollars,
however, the reimbursement rate per mile has changed several times in
the past. I constructed the following formula. =SUMIF($B:
$B,"<1/1/2004",D
$B,"AND(<9/1/2005,>12/31/2003),D
$B,"AND(<1/1/2006,>9/31/2005),D
$B,"AND(<2/1/2007,>12/31/2005),D
$B,">2/1/2007",D
The trouble is that the formula doesn't "pick up" values for dates in
the AND time frames. A date in the first and last time periods
(without the AND)records O.K.. Any suggestions?
TIA ed