SwampthingX90
New Member
- Joined
- May 6, 2016
- Messages
- 22
I'm trying to get the formula below to calculate a certain rate based on a certain date range. It's supposed to never exceed the monthly rate, but since I'm using 28 as a monthly divider, 10/3 thru 10/31 would end up at 25 days and use the weekly rate mixed with the daily rate which would exceed the monthly rate. Let me know if I need to expand further.
=IF(K16<>0,((H16*MOD(K16,7)*(MOD(K16,7)<4)+I16*((MOD(K16,7)>3)+INT(MOD(K16,28)/7))+J16*INT(K16/28))*D16),0)
=IF(K16<>0,((H16*MOD(K16,7)*(MOD(K16,7)<4)+I16*((MOD(K16,7)>3)+INT(MOD(K16,28)/7))+J16*INT(K16/28))*D16),0)