Rental Days

Papi

Well-known Member
Joined
May 22, 2007
Messages
1,592
I am working on a workbook that looks at rental days. If there is an end date the formulas needs to show how many days for the particular month i.e. if Jan 4 is the end date then January would show 4 days and none for February, March etc.

Where I am stumped is shutting down the days when there is no end date and the rental is outstanding and keeps counting. So, if it is February 20th, without an end date, then there should be 20 days for that month and none in March etc. On Februuary 21 it would show 21 days and again, none for March etc.

Any help would be appreciated.

Rental Days.xlsm
EFGHIJKLMNO
1StartDateEndDateAugSepOctNovDecJanFebMarApr
222-Aug-10223031303131283130
322-Aug-104-Jan-1122303130314---
416-Aug-1020-Feb-1116303130313120--
Strad
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello ssg4421,

Wow, thanks for that. I have to say that I am very impressed with how clean and mean your formulas are but I do not know them and therefore am not sure how to change them to reflect the needed changes as noted below.

The only thing that it needs to do is not show data past today(). That is to say that anything past TODAY and or next month (if there is no end date) does not show until that day comes into play. I changed the date in your cell F2 to reflect January 1, 2011. Cell F5 would show 31 and If today was February 20th then I would look for 20 in cell G5 and zero in cell H5, I5, J5 etc.
 
Upvote 0
I added another example that may do what you want -- same link: Allocate by Month

The formulas just use named ranges to make them more understandable (to me, anyway). Do Insert > Name > Define (or use Name Manager) to see how they are defined.
 
Last edited:
Upvote 0
Hello shg4421,

That is a brilliant worksheet and hits the nail on the head. I agree with naming ranges in order to help them become more understandable. That also works for me. However, how you do it is slightly different than how I do that so will study your style as it works great!

I will continue to study your workbook as it approaches how I have done this type of work for many years at a whole new angle. Much shorter, yet it appears it will do things in a far better way. If you do not mind, I may return to ask a few questions, if I cannot figure it out for myself.

Thanks for taking your time to solve this matter. I really appreciate this!

Best wishes,

Alan
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top