+ Reply to Thread
Results 1 to 9 of 9

Round Number Down by Decimal Places Using Format

  1. #1
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney
    MS-Off Ver
    Office 2003
    Posts
    47

    Round Number Down by Decimal Places Using Format

    Hi, If you enter a number in Excel which is halfway like 8.5 and then select Format - Number - 0 Decimal Places, the number becomes 9. My question is about if there is a way to round this number down. For example, 8.

    I know the Rounddown and Roundup functions exist and how to use Rounddown to make this happen. Is there an option in Excel where you can just format the cells instead? Perhaps using Custom instead of Number might do something? Is there something in Tools then Options which will do this?

    If there isn't, is there a way you can make this happen in one cell instead of needing Rounddown to reference another cell? For instance, at the moment I have 8.5 in one cell and then 8 in another cell using Rounddown whereas with Format - Number, I type in 8.5 and that cells automatically becomes 9 in the one cell. Any help would be great. Thanks.

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Round Number Down by Decimal Places Using Format

    Hi jaclrsen

    How about Formatting cells, Custom: #

  3. #3
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney
    MS-Off Ver
    Office 2003
    Posts
    47

    Re: Round Number Down by Decimal Places Using Format

    Hi Kevin UK, Thanks for the response. If you put 8.5 in a cell and use # in Format Cells > Custom, the cell will return a 9. The number goes up to 9 but I want it to go down to 8. I think you're correct about doing it through Custom instead of Number but I'm not sure what syntax to use. Any further help would be great. Thanks.

  4. #4
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Mexico
    Posts
    200

    Re: Round Number Down by Decimal Places Using Format

    This short macro will do it for cells A1:A10:
    Please Login or Register  to view this content.
    Last edited by Armando Montes; 10-17-2012 at 02:53 AM. Reason: Typo

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Round Number Down by Decimal Places Using Format

    Hi jaclrsen

    No I don't think you can. You will have to use the ROUNDDOWN.

    Kevin

  6. #6
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney
    MS-Off Ver
    Office 2003
    Posts
    47

    Re: Round Number Down by Decimal Places Using Format

    Hi Kevin UK and Armando, Thank you both for your responses with the macro and ROUNDDOWN suggestion. I have one question regarding the ROUNDDOWN suggestion. Is it possible to put a ROUNDDOWN formula in cell A1 and then type a number in cell A1 which is rounded down?

    For example,

    A1 may have =ROUNDDOWN formula but if you type 8.5 into A1, it is rounded down to 8 doing it all in the same cell of A1.

    I'm guessing this will create a circular reference but is this possible to have a formula working in the background? Alternatively, would you have to go with a macro like what was suggested. Thanks for the terrific help and any further help would be great.

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Round Number Down by Decimal Places Using Format

    Hi jaclrsen

    No you will over write the formula. What about if you have a helper column say column A and you put your formula in column B then hide column A!

    Might be able to do it with code, have you done a search.

    Kevin

  8. #8
    Registered User
    Join Date
    09-16-2012
    Location
    Sydney
    MS-Off Ver
    Office 2003
    Posts
    47

    Re: Round Number Down by Decimal Places Using Format

    Hi Kevin UK and Armando, Thank you both for your responses. Kevin UK, thank you so much for your extensive help and taking on my query. Armando, thank you so much for a great solution.

    Considering Format Cells won't work, I think ROUNDDOWN or Armando's excellent Macro which does work are the best solutions. Thanks so much for your time and efforts.

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Round Number Down by Decimal Places Using Format

    Hi jaclrsen

    Thank you for the feed back.

+ 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