+ Reply to Thread
Results 1 to 7 of 7

Rounding up to specified numbers in a list

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2008 Mac
    Posts
    4

    Rounding up to specified numbers in a list

    I need to numbers in one column to round up to the nearest number in another column.

    Example:

    Column A -

    2.08
    1.08
    2.90
    5.12
    10.83

    Column B -

    2.65
    5.83
    12.19
    25.97
    54.47

    I want the values in column A to round up to the nearest values in column B. Is it possible without using lots of IF statements?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Rounding up to specified numbers in a list

    Not real clear.

    Show us what results you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Rounding up to specified numbers in a list

    So the answer should be:
    2.65
    2.65
    5.83
    5.83
    12.19
    in C column?
    If yes, try in C1:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-Shift-Enter
    Drag down
    C column will reflect new values of A column. You can copy/paste value back to A if you want.
    Quang PT

  4. #4
    Registered User
    Join Date
    01-18-2013
    Location
    London
    MS-Off Ver
    Excel 2008 Mac
    Posts
    4

    Re: Rounding up to specified numbers in a list

    Quote Originally Posted by bebo021999 View Post
    So the answer should be:
    2.65
    2.65
    5.83
    5.83
    12.19
    in C column?
    If yes, try in C1:
    Please Login or Register  to view this content.
    Confirmed with Ctrl-Shift-Enter
    Drag down
    C column will reflect new values of A column. You can copy/paste value back to A if you want.
    hi, yes that would be the correct answer. Will try your formula in a moment. Would it be a pain to update the values in column A?

    Column A generates value simply on a % value of a certain number. At the moment A1 says = E1*0.002. This gives me a value of 2.00 (E1 being 1000).

    Was hoping theres a way to generate that value and then round up to a value in column B. If not i guess ill have to create new columns

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Rounding up to specified numbers in a list

    If A has value itself, macro is needed. But A value depend on other cell, like this case, try to replace A1 in my formula with E1*0.002, and put the formula from A1 down

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Rounding up to specified numbers in a list

    Perhaps try this "array formula"

    =MIN(IF(B$1:B$5>=A1,B$1:B$5))

    confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Rounding up to specified numbers in a list

    Quote Originally Posted by daddylonglegs View Post
    Perhaps try this "array formula"

    =MIN(IF(B$1:B$5>=A1,B$1:B$5))

    confirmed with CTRL+SHIFT+ENTER
    I have searched very carefully to make sure that you are not here...

+ 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