Hello Everyone,
I've come across a challenging problem to solve and unable to successfully put this together. I'll do my best to explain this.
The date fields I have are:
A2 = Start Date of Lease
B2 = End Date of Lease
C2 = Rent
D2= Daily Rate based on 30 days (I may need to adjust based on Feb being 28 or 29 days)
G2:G13 = EOM calculation [=EOMONTH(DATE($I$2,H2,1),0)]
H2:H13 = Month #s from 1 to 12
I3 = Year
I'm attempting to calculate what is owed for the tenant.
For example, the tenant moves in 1/1/19 and leaves on 1/15/20.
Additional information is that each calendar year is a separate workbook dated for the year.
So...what I did was the following and it works; however, I need to figure out how to combine these equations to one or maybe do the calculations elsewhere and then choose which one to post in appropriate cell.
The equation for pro rated rent based on start date. The answer is 1000 because it is way before 1/31/20. The equation below also determines if the calculation is over 1000, just put down 1000.
=IF((($G$2-$A$2)*$D$2)<0,0,IF((($G$2-$A$2)*$D$2)>$C$2,$C$2,($G$2-$A$2)*$D$2))
The equation for pro rated rent based on end date. The answer is 466.6667 because it is halfway through the month of Jan 2020 and based on a 33.3333 daily rate.
=IF((($G$2-$B$2)*$D$2)<0,0,IF((($G$2-$B$2)*$D$2)>$C$2,$C$2,C2-($G$2-$B$2)*$D$2))
My question is how can I combine those two equations into one or do I need to calculate the pro rate for start/end date then choose one? I'm not sure how to even ask this question.
I want to calculate the rent being charged based on start date and end date. If the start date is in another year, then the focus will be on the end date. If the end date is "blank", then the rent is the max amount. If the start date is in the middle of the year, say June, I want to ensure that row will not be charged rent from Jan - May. Then from June going forward, enter the rent amount being charged. Each month is represented in separate tabs. Does this make sense? Any guidance/assistance would be great.
Thanks,
Jason
I've come across a challenging problem to solve and unable to successfully put this together. I'll do my best to explain this.
The date fields I have are:
A2 = Start Date of Lease
B2 = End Date of Lease
C2 = Rent
D2= Daily Rate based on 30 days (I may need to adjust based on Feb being 28 or 29 days)
G2:G13 = EOM calculation [=EOMONTH(DATE($I$2,H2,1),0)]
H2:H13 = Month #s from 1 to 12
I3 = Year
I'm attempting to calculate what is owed for the tenant.
For example, the tenant moves in 1/1/19 and leaves on 1/15/20.
Additional information is that each calendar year is a separate workbook dated for the year.
So...what I did was the following and it works; however, I need to figure out how to combine these equations to one or maybe do the calculations elsewhere and then choose which one to post in appropriate cell.
The equation for pro rated rent based on start date. The answer is 1000 because it is way before 1/31/20. The equation below also determines if the calculation is over 1000, just put down 1000.
=IF((($G$2-$A$2)*$D$2)<0,0,IF((($G$2-$A$2)*$D$2)>$C$2,$C$2,($G$2-$A$2)*$D$2))
The equation for pro rated rent based on end date. The answer is 466.6667 because it is halfway through the month of Jan 2020 and based on a 33.3333 daily rate.
=IF((($G$2-$B$2)*$D$2)<0,0,IF((($G$2-$B$2)*$D$2)>$C$2,$C$2,C2-($G$2-$B$2)*$D$2))
My question is how can I combine those two equations into one or do I need to calculate the pro rate for start/end date then choose one? I'm not sure how to even ask this question.
I want to calculate the rent being charged based on start date and end date. If the start date is in another year, then the focus will be on the end date. If the end date is "blank", then the rent is the max amount. If the start date is in the middle of the year, say June, I want to ensure that row will not be charged rent from Jan - May. Then from June going forward, enter the rent amount being charged. Each month is represented in separate tabs. Does this make sense? Any guidance/assistance would be great.
Thanks,
Jason