+ Reply to Thread
Results 1 to 6 of 6

Losing the .## and calculating whole numbers

  1. #1
    Registered User
    Join Date
    04-20-2016
    Location
    london
    MS-Off Ver
    2000
    Posts
    1

    Losing the .## and calculating whole numbers

    Here is my dilemma.

    A=13
    B=4
    C=A/B
    = 3.25

    Now, If I change the format of C to be 0 decimal points, I get 3. - Brilliant!
    But, when I calculate using C, it still keeps the total 3.25.

    I just want to calculate using 3.

    Ultimately, I want to calculate the remainder as a whole number too.

    So, B goes into A 3 times with a remainder of 1.

    Any clues?

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Losing the .## and calculating whole numbers

    In C1

    =INT(A1/B1)

    in D1

    =MOD(A1,B1)

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Losing the .## and calculating whole numbers

    I might suggest ROUND instead of INT.

    If the result of A/B is say 3.6, then formatting it to 0 decimals would show 4, but INT(A/B) would be 3

    =ROUND(A1/B1,0)

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Losing the .## and calculating whole numbers

    Not what I understood the OP wants

    A1=14
    B1= 3

    Round (A1/B1,0)= 5

    Ultimately, I want to calculate the remainder as a whole number too.

    So, B goes into A 3 times with a remainder of 1. (with value of 13)
    Having the ROUND result of 5 but MOD of 2 doesn't not make sense (to me!).

    The ambiguity of English!

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Losing the .## and calculating whole numbers

    Good point,
    If 'ultimately' we're after the remainder, then we don't even need the intermidiate A1/B1 calcuation
    MOD is all that is needed.


    My post was based on only the first half of the post, making the result of A/B match the result of the rounding done by cell formatting.

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Losing the .## and calculating whole numbers

    I just want to calculate using 3.

    Ultimately, I want to calculate the remainder as a whole number too
    Both required I think (?)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. fixing numbers without losing zeros
    By phillyd023 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2014, 05:24 PM
  2. Replies: 4
    Last Post: 08-21-2010, 09:09 PM
  3. Calculating Longest winning and losing streak.
    By Lewis Koh in forum Excel General
    Replies: 2
    Last Post: 07-27-2009, 08:43 AM
  4. enter formula into Excel worksheet without losing numbers
    By ricki racer in forum Excel General
    Replies: 1
    Last Post: 07-29-2006, 06:15 PM
  5. losing decimal place when inserting numbers
    By traoots in forum Excel General
    Replies: 2
    Last Post: 05-02-2006, 08:39 AM
  6. [SOLVED] large numbers not losing the end without formatting column
    By Kevin in forum Excel General
    Replies: 4
    Last Post: 09-14-2005, 05:05 PM
  7. [SOLVED] Losing numbers
    By rydog in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2005, 01:06 PM

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