Ok. So I am super amateur status regarding excel and excel formulas. However, I am trying to do something somewhat complicated.
I am trying to design a formula that works in two parts. The context of this formula is that I am using this for billing purposes. I have a column that contains a start and end date with a total number of hours worked between those two dates. What I am trying to do bill (multiply) certain hours that were before the year 2017 by a certain rate and bill the hours worked after the year 2017 by a new rate.
My formula I used was IF(AND(E6>=DATE(2017, 1, 1),F6>=DATE(2017, 1, 1)),L6*M4,L6*M3)
The issue with this formula is that it does not take into account if the start date(E6) was in year 2016 but he end date(F6) was in 2017. If that was the case I would need to bill a certain percentage of the total hours worked in 2016 by one rate and the remainder by the new rate.
Any suggestions. I am not sure if I even explained this correctly. However, I am stumped and would love some suggestions
I am trying to design a formula that works in two parts. The context of this formula is that I am using this for billing purposes. I have a column that contains a start and end date with a total number of hours worked between those two dates. What I am trying to do bill (multiply) certain hours that were before the year 2017 by a certain rate and bill the hours worked after the year 2017 by a new rate.
My formula I used was IF(AND(E6>=DATE(2017, 1, 1),F6>=DATE(2017, 1, 1)),L6*M4,L6*M3)
The issue with this formula is that it does not take into account if the start date(E6) was in year 2016 but he end date(F6) was in 2017. If that was the case I would need to bill a certain percentage of the total hours worked in 2016 by one rate and the remainder by the new rate.
Any suggestions. I am not sure if I even explained this correctly. However, I am stumped and would love some suggestions