+ Reply to Thread
Results 1 to 6 of 6

vlookup question

Hybrid View

  1. #1
    Registered User
    Join Date
    02-23-2008
    Posts
    3

    vlookup question

    in the linked screen shot, im trying to get the rest of the staff filled in, and its not happening properly. for example, when i fill it through to B11 i want it to show 6 as that is the amount of staff needed, but it shows 4


    thanks in advance

    sorted, cheers
    Last edited by c0ysw; 02-26-2008 at 09:46 PM.

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You'd better use a formula like =ROUND.UP(9001 / 4500,0) * 2 to calculate how much staff you need.

    The function ROUND.UP may be false, as I translated it from the Dutch function for this (AFRONDEN.NAAR.BOVEN).

    Erik
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    02-23-2008
    Posts
    3
    thing is, i need to be able to enter different numbers into the predicted meals table and have it adjust the staff table automatically. my problem is that vlookup chooses either an exact or lower value, i need it to choose the next higher so there is enough staff to cover

  4. #4
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Instead of 9001 you can also point to a cell :

    ROUND.UP( B4 / 4500 , 0) * 2

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    if you use index/match instead of v look up
    if the data is sorted as descending
    then setting the match type to -1
    will return smallest value that is greater than or equal to match value
    here's how its done
    formula is in b2
    i put the "if " bit in because it will find a match for nothing which is annoying
    see example in g2

    enter number dining in a2
    Attached Files Attached Files
    Last edited by martindwilson; 02-23-2008 at 02:59 PM.

  6. #6
    Registered User
    Join Date
    02-23-2008
    Posts
    3
    you sir, are a legend

+ 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