+ Reply to Thread
Results 1 to 3 of 3

Rouddown formula help

  1. #1
    Registered User
    Join Date
    05-22-2012
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    1

    Rouddown formula help

    Hey guys, I'm trying to round down and then divide a number by 2. =ROUNDDOWN(A22,0)/2 is the formula I'm trying to use. The issue with this is that if I input an odd number into A22, it doesn't round down (e.g. the formula changes 7 to 3.5). However, if I input a number that is even, e.g. 4.6, it rounds it down to 2. 4.5 also rounds down to 2 etc. Why does the formula not round down odd numbers?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Rouddown formula help

    If you want your final value rounded down, then try

    =ROUNDDOWN(A22/2,0)
    Does that work for you?

    or maybe you want two rounddowns?

    =ROUNDDOWN(ROUNDDOWN(A22,0)/2,0)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Rouddown formula help

    I think you want

    =ROUNDDOWN(A22/2,0)

    Here's the difference:

    Using 7 as an example for A22's value
    you had =ROUNDDOWN(A22,0)/2
    which is =ROUNDDOWN(7,0)/2
    which is =7/2
    which is =3.5

    should be
    =ROUNDDOWN(A22/2,0)
    which is =ROUNDDOWN(7/2,0)
    which is =ROUNDDOWN(3.5,0)
    which is =3
    Last edited by Cutter; 05-22-2012 at 11:21 AM.

+ 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