+ Reply to Thread
Results 1 to 4 of 4

Loop(?) giving divisor and the rest from the result

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Loop(?) giving divisor and the rest from the result

    Hello,
    Here's the thing, I want to make a formula which will divide my number by another fixed one, and as a result give me result of division and the rest (in another cell). I tried to make it using IF loop but its dead end, especially because big numbers are out of reach of formula. So, here's the example:

    The number is 234, the fixed divider is 10, so the result is 23 and the rest placed in another cell is 4.
    The number is 456, the result is 45 and the rest is 6.

    Any ideas?

    Thanks a lot in advance to anyone replying sharing thoughts!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Loop(?) giving divisor and the rest from the result

    With the number in A1, put this formula in B1:

    =INT(A1/10)

    to get the integer part, and this formula in C1:

    =MOD(A1,10)

    to get the remainder.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Loop(?) giving divisor and the rest from the result

    People are learning whole life. I should spend more time with Excel to know this basic functions. Cheers Pete_UK!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Loop(?) giving divisor and the rest from the result

    You're welcome - glad to be of help.

    Pete

+ 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. [SOLVED] Simple =Sum(B2:L2) result is not giving accurate result and =IMSUM(M2,O2) also.
    By SimonsGE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2013, 01:56 AM
  2. Formula giving different result on two different pcs
    By mdooley in forum Excel General
    Replies: 2
    Last Post: 05-28-2012, 07:05 PM
  3. Vlookup always giving n/a as result
    By ankit_85 in forum Excel General
    Replies: 4
    Last Post: 09-11-2010, 01:28 AM
  4. formula giving wrong result sometimes?
    By lnjr in forum Excel General
    Replies: 2
    Last Post: 08-13-2010, 09:20 AM
  5. [SOLVED] Formula not giving me the right result
    By Steved in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2006, 10:25 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