I think this in theory is a really simple one but its driving me mad ! lol.
Basically - looking at how you'd divide rents based on the cost/amount of people. Essentially, someone has said they will take the smallest room - if they pay £5 less a month, and the amount of people in the house is either going to be 3 or 4 - if its 4, the 2 in the smallest rooms should pay £5 less than those in the 2 bigger rooms (who pay the same).
Sounds really simple, but I can't get it to work reliably. So essentially.... dividing a total cost by either 3 or 4.... but ensuring the difference is always £5 in total :-|
Any help with a formula would be massively appreciated.
Looked at your spreadsheet but am a little confused.
you always have four rooms... but 3 or four may be rented. The small rooms need to be 5ukp less than the big (just for room) plus costs of utils (net and bills) shared between people...
The weekly rent is static, but the people may fluctuate? so you could have 2 small and 1 big or just two small but the weekly rent would need to stay the same..?
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
All of the houses we are looking at or 4 beds that will allow either 3 or 4 people.
So yes... always 4 rooms. Either 3 or 4 people.
Its the total per week (including bills) that needs the difference of £5.
Rent isn't static.... the different houses have different rental charges. But they all have the same set up of 2 nice rooms, and 2 crap rooms (damn houses).
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
for each small room =(C$2-5*(B$2-2))/B$2
for each large room =(C$2-5*(B$2-2))/B$2+5
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case. Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete