+ Reply to Thread
Results 1 to 6 of 6

Rounding to the next whole number

  1. #1
    mpeplow
    Guest

    Rounding to the next whole number

    I'm trying to find a function that will round up to the next whole number; I read that the round() function does exctally that, however, When using the immediate box with the following code

    Please Login or Register  to view this content.
    This returns the result 1 (the nearest whole number) rather than 2 (which is the next whole number)

    Can anyone help me out with this?

  2. #2
    Registered User
    Join Date
    01-16-2007
    Location
    Near the box
    Posts
    58
    hi there,

    what about this one ?

    Please Login or Register  to view this content.
    ? ? ? I like the way how Excel can access system API. Really cool ! ? ? ?

  3. #3
    mpeplow
    Guest
    Thanks, this works to make 5/4 = 2 but it also make 4/4 = 2 (when I need it to equal 1)

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    mpeplow
    Guest
    This looks like it will work for what I want. Thanks everyone for all the help!

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Good to hear

    VBA Noob

+ 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