+ Reply to Thread
Results 1 to 5 of 5

Divide a number into multiple cells

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    australia
    MS-Off Ver
    Excel 2013
    Posts
    40

    Divide a number into multiple cells

    Hi,

    Im looking for a formula that will divide a whole number over multiple cells.

    For example;

    the whole number needs to be divided by 45 with the remainder displayed in the next cell.

    It should like this, e.g. A1 (user input) 108, A2 45, A3 45, A4 18.

    The number in A1 may be as large as 450, so the formula would have to spread over 10 columns.

    Appreciate your help

    Thanks

  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,704

    Re: Divide a number into multiple cells

    Put this in B1:

    =IF(INT($A1/45)>=COLUMNS($B:B),45,IF(COLUMNS($B:B)>INT($A1/45)+1,"",MOD($A1,45)))

    then copy across as far as you need to.

    Hope this helps.

    Pete

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: Divide a number into multiple cells

    With A2 = 45
    B1:=MIN(A1,$A$2)
    C1=MIN($A$1-SUM($B$1:B1),$A$2)
    Drag C1 across as far as you need.
    Quang PT

  4. #4
    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: Divide a number into multiple cells

    Another way..

    In B1

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In C1 and copy across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  5. #5
    Registered User
    Join Date
    08-16-2011
    Location
    australia
    MS-Off Ver
    Excel 2013
    Posts
    40

    Re: Divide a number into multiple cells

    Thanks for your quick replies, the methods you both supplied work great.
    I appreciate your help.

+ 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] Divide a number into multiple cells
    By rhon101 in forum Excel General
    Replies: 6
    Last Post: 03-03-2020, 08:20 PM
  2. Replies: 0
    Last Post: 09-05-2012, 12:09 AM
  3. Divide a number into multiple columns
    By monkeyman905 in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 02:57 PM
  4. Divide only with number of cells with value>0
    By primaxx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2009, 03:39 AM
  5. how do you divide the average of a number into 3 different cells.
    By Shaun in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-25-2006, 05:15 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