+ Reply to Thread
Results 1 to 4 of 4

Vlookup information in a table and Round up(file attached)

  1. #1
    Registered User
    Join Date
    10-01-2008
    Location
    Minneapolis
    Posts
    2

    Question Vlookup information in a table and Round up(file attached)

    I am trying to automaticaly round an uneven number to up to predefined numbers in a table on a different tab.

    The file is color coded on what cells i want to do what.....Start with the red cell

    This i more than likely very easy but i have been beating my head agenst the wall in the help menue.

    If someone could help me create the first one i would be able to teach myself the rest.

    Thanks for your help

    Nick
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    This should do it:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-01-2008
    Location
    Minneapolis
    Posts
    2

    Nice!

    This works perfectly!

    Can you take a second and quickly explain how and what all of this stuff is doing?

    INSA, the 15 in the middle of the statement,the +1 at the end of the statement?

    Sorry for being so clueless, i just want to be able to do this again!

    Nick

  4. #4
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    If the value being looked up, is less than the lowest value in the table, the MATCH function returns an #N/A. The IF(ISNA(MATCH()), 15 ,INDEX( MATCH()+1) is saying that if the result of the MATCH is N/A, return 15, or you could use a link to the cell itself in case 15 isn't always the lowest value. INDEX(MATCH()+1) - since the MATCH function returns either an exact match or the lowest previous value, the INDEX portion would be showing that value. I had to bump up the row by one to "round up" to the next value. I just realized you wil get an incoorect value if your lookup value mactches one of the vaules in the table.

    This formula eliminates that error


    Please Login or Register  to view this content.

+ 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