
Originally Posted by
Pete_UK
Okay, well I think the attached file does what you have asked for.
I've set up a table in cells O5:P15 which calculates the duration in weeks and then just totals these cumulatively - there is no need for you to do anything with this.
I've used this formula in A28:
=IF(ROWS($1:1)>MAX($P$7:$P$15),"",INDEX($E$7:$E$15,MATCH(ROWS($1:1)-1,$P$6:$P$15))+7*(ROWS($1:1)-INDEX($P$6:$P$15,MATCH(ROWS($1:1)-1,$P$6:$P$15))))
to get the dates at 7-day intervals from the start date for each tenant's duration, and this formula in B28 gets the name:
=IF(A28="","",INDEX($D$7:$D$15,MATCH(ROWS($1:1)-1,$P$6:$P$15)))
I've copied these two formulae down to row 100 to cope with more tenants being added to the upper table, though you may need to copy them down further as you could potentially have 52 entries for each year if you have 100% occupancy.
I've not changed the data you had set up, so you can see your first tenant for 18 weeks, then Britney for just one week, and then your latest tenant goes just beyond today (he started on a Tuesday, so it goes up to the next Tuesday after today).
Hope this helps.
Pete
Bookmarks