+ Reply to Thread
Results 1 to 6 of 6

Distribute bedrooms often?

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    swe
    MS-Off Ver
    office 2010
    Posts
    57

    Question Distribute bedrooms often?

    Hi

    I have a spreadsheet where i make lists of who is going visit a big house i administrate.

    I do the distribution of rooms, where everyone will sleep.

    For exampel room 1 have 2 beds, room 2 have 5 beds, room 3 have 3 bed.

    On this spreadsheet i want to set a rule that i cant overbook a room.

    The spreadsheet looks like this...

    Name | Room |
    Kevin | 1 |
    Rob | 1 |
    Jessica | 2 |
    Sara | 2 |
    Mike | 1 |

    As you can see above, there are 3 ppl placed in room 1
    But as i said before there are on 2 beds in room 1

    I want the spreadsheet to know how many beds can be in room 1
    And when i do a mistake warn me or prevent me from overbooking a room.

    How can this be done in a good and smooth way?

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Distribute bedrooms often?

    Sounds like you could use Data Validation for this. In the ribbon, select Data --> Data Validation. Allow Whole Numbers and set the minimum (presumably zero), and the maximum for that specific room. Now the cell should only allow values less than or equal to that which you have specified.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    12-03-2014
    Location
    swe
    MS-Off Ver
    office 2010
    Posts
    57

    Re: Distribute bedrooms often?

    It sounds like you are missing the fact that i am putting the room number in the cell to the right of the persons name.

    If i use data validation the only thing that does (afaik) is that it prevents me from putting a number that is not allowed in the cell..

    But it does not calculate how many spots room 1 already have and warn me about it.



    If a room have 2 bed

    and i have a long list of names

    i give each name a room number where he/she is suppose to sleep.

    i want to avoid giving 3 ppl the same room that only have 2 bed.
    so in the list i give each person a room to go to
    the list should warn me if i give 3 ppl a room that dont have 3 bed or more.

  4. #4
    Registered User
    Join Date
    05-07-2015
    Location
    herts, england
    MS-Off Ver
    2016
    Posts
    29

    Re: Distribute bedrooms often?

    Maybe you could have some helper cells that contain a "countif" formulas. e.g. a cell that counts all the time room 1 is listed etc. Then for each of these cells you could apply conditional formatting so that they give a warning if they go over the limits.

  5. #5
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Distribute bedrooms often?

    I did misunderstand your problem then. There are multiple ways to tackle this, but rw2 is on the same path I would follow, except I would add in a table that contains the rooms/bed numbers for ease of alteration. I kept a helper column, but you could as easily input the formula into a conditional format. See attached.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-03-2014
    Location
    swe
    MS-Off Ver
    office 2010
    Posts
    57
    Quote Originally Posted by mcmahobt View Post
    I did misunderstand your problem then. There are multiple ways to tackle this, but rw2 is on the same path I would follow, except I would add in a table that contains the rooms/bed numbers for ease of alteration. I kept a helper column, but you could as easily input the formula into a conditional format. See attached.

    Thanks both

    This can work great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. distribute values
    By ahmedAbdelkader in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-26-2015, 09:30 AM
  2. Is it possible to divide and distribute?
    By leanne1220 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-14-2015, 03:33 PM
  3. Distribute Numbers
    By shimaa01234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-13-2014, 05:24 AM
  4. [SOLVED] Distribute VBA Add-In
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-25-2014, 03:13 PM
  5. Distribute Value by Hour
    By dreicer_Jarr in forum Excel General
    Replies: 2
    Last Post: 02-20-2011, 09:00 PM
  6. [SOLVED] Distribute proportionately
    By mshtuhin in forum Excel General
    Replies: 6
    Last Post: 01-16-2010, 12:28 AM
  7. Distribute Total
    By Fable in forum Excel General
    Replies: 0
    Last Post: 07-25-2005, 12:28 PM

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