+ Reply to Thread
Results 1 to 6 of 6

Calculation Based upon a number of conditions.

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    Calculation Based upon a number of conditions.

    Hi

    I need a magic formula for a property list to calculate if ref's numbers have to many bedrooms.

    There is always one main resident, then the rest of the house is made up of their partner, children or other adults.

    The attached workbook contains ref numbers, with following fields - no of bedrooms, total occupants, if there is a partner in the house (0 for no, 1 for Yes), then total children. then children broken down into their age groups.

    The basic principle is how many bedrooms do they have over that they actually need.

    This is the tricky bit, has to follow these conditions:

    • 1 bedroom for the main resident and their partner.
    • 1 bedroom for two children under 10 expected to share regardless of gender
    • 1 bedroom for two children under 16 of the same gender will be expected to share

    The answer/formula should go in the over occupation column (i.e. how many bedrooms extra do they have)

    Really appreciate any help.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Calculation Based upon a number of conditions.

    I'm not really sure what you want...

    Maybe this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Calculation Based upon a number of conditions.

    Nope.

    It would be something on the line's of:

    (total occupants - Total bedrooms) + conditions (partner if they have one, if two children under 10 they count as one, if two children under 16 of same gender they count as one) = how many bedrooms do they not need
    Last edited by halfpint123; 08-28-2012 at 09:24 AM.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Calculation Based upon a number of conditions.

    This is number of how many they need.

    You can add:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    P.S. No need to check partner since they have one room (number one in equation) no matter of partner or not.

  5. #5
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Calculation Based upon a number of conditions.

    Nearly there, however not correct.

    i.e. ref 123548/M01. 2 beds. 1 main resident. and one child over 16. Your formula gives a result of 1. This doesn't make sense as 2 people that need a bedroom each. Could you have a look please.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,660

    Re: Calculation Based upon a number of conditions.

    That's because you have total children but you don't have their age...
    M/F children is 0 in all other columns.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1