+ Reply to Thread
Results 1 to 4 of 4

Change the physical value of a cell instead of visual with roundup function

  1. #1
    Registered User
    Join Date
    08-02-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    2

    Change the physical value of a cell instead of visual with roundup function

    Hello!

    I want to round up a value and use this value in vlookup function. When excel reads the cell he uses the underlying value.

    Example: 300/7 = 42,85714286
    H8=ROUNDUP(H7;2) = 42.86

    table
    42.85 X
    42.86 Y

    =vlookup(H8;"range";1;false) will return X and not Y

    I've tried trunc() as well, but doesn't work

    Can anyone help me with this problem?
    Last edited by MWI; 03-01-2013 at 12:11 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Change the physical value of a cell instead of visual with roundup function

    Make sure the range (table) for vlookup is correct

    =vlookup(ROUNDUP(H7;2);$A$1:$B$2;2;false)

    where A1:B2 is the table range
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    08-02-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Change the physical value of a cell instead of visual with roundup function

    thx for the answer but that's not the problem, the vertical lookup function works perfectly,
    disadvantage in this function is that if it doesnt find the exact value it will use the value beneath

    I want excel to use 42.8600 as reference value and not 42.857... because the last one will return the value corresponding to 42.85

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Change the physical value of a cell instead of visual with roundup function

    The solution provided in post #2 seems to do what you want. Can you post a sample sheet with what you want to achieve if it is not correct?
    roundup.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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