+ Reply to Thread
Results 1 to 10 of 10

Help with ROUNDDOWN/rounding task

  1. #1
    Registered User
    Join Date
    05-07-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Help with ROUNDDOWN/rounding task

    Hi,

    I've been trying to apply the ROUNDDOWN(_,0) function to a table of values. I want it to round down partial numbers such as 3.5 to 3.0, but not whole numbers such as 3.0 to 2.0. I want those to stay as the same value if there are integers.

    How can I write my statement to do so?

    Thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with ROUNDDOWN/rounding task

    Hi and welcome to the forum.

    Try

    =INT(A1)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    05-07-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with ROUNDDOWN/rounding task

    Quote Originally Posted by Fotis1991 View Post
    Hi and welcome to the forum.

    Try

    =INT(A1)
    Thanks for the welcome. Unfortunately that didn't work as it still rounds 13.0 down to 12.0. Any other ideas?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Help with ROUNDDOWN/rounding task

    It can not round 13 to 12 as it take out all decimal places and leave just whole number.

    More likely your 13 is not 13 but something like 12.9999 (where INT will give 12 but showing number to 2 decimal will show 13).
    Last edited by zbor; 05-07-2012 at 02:43 AM.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with ROUNDDOWN/rounding task

    Why?? I can not understand it.


    Edit: Good morning Zbor. I did not see your post before mine!!
    Attached Files Attached Files
    Last edited by Fotis1991; 05-07-2012 at 02:42 AM. Reason: Edit

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Help with ROUNDDOWN/rounding task

    Fotis, in your example in first cell now enter 12.99 and you'll find out why

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with ROUNDDOWN/rounding task

    Yes my friend... I understand what you mean...

    But it's 12.99(I mean if you type it)..... Not 13 ! Isn't it?

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Help with ROUNDDOWN/rounding task

    Yes. But it's showed as 13. And making INT of that can bring a confusion.
    So it's more important to see what's in the cell, and now what is showed there.

  9. #9
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Help with ROUNDDOWN/rounding task

    with TRUNC function:

    12.99 > 12
    3.5 > 3
    3.0 > 3
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  10. #10
    Registered User
    Join Date
    05-07-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Help with ROUNDDOWN/rounding task

    Quote Originally Posted by zbor View Post
    It can not round 13 to 12 as it take out all decimal places and leave just whole number.

    More likely your 13 is not 13 but something like 12.9999 (where INT will give 12 but showing number to 2 decimal will show 13).
    You are right. I expanded the cells to show 3 decimal places and the INT function worked the way it was supposed to after doing this. Thanks a lot for the help

+ 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