+ Reply to Thread
Results 1 to 16 of 16

Formula that sums a column and puts totals of 24 in other columns

  1. #1
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Formula that sums a column and puts totals of 24 in other columns

    Hi All,

    I'm looking for help for a formula that sums column "A" that is populated with numbers, and puts a total of 24 from that column into columns b, c, d...etc until all have been allocated.


    Thanks in advance

    Michael

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Formula that sums a column and puts totals of 24 in other columns

    No, sorry. I don't follow your explanation. You will have to mock up a sample Excel sheet.

    Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    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,152

    Re: Formula that sums a column and puts totals of 24 in other columns

    Can you please post a small sample file showing the expected results.

    Click "Go Advanced" the Paper Clip icon: "Add Files", "Browse", "Upload", "Done"

  4. #4
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Thanks for replies,

    I do have a sheet on what I've been doing, plus a desired end result, which is on the second tab.

    Thanks
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Hi,

    Just wondering has anyone had any luck with this? I've hunted all over google and couldn't find anything.

  6. #6
    Registered User
    Join Date
    10-10-2015
    Location
    London, Uk
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Formula that sums a column and puts totals of 24 in other columns

    You mean something like: copypaste in a2:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Thanks yumpup,

    That doesn't seem to work? Not sure if I have missed something with that formula. The result I am looking for is the formula would look down column F sum to 24 then copy those numbers from column F into column G, then continue to sum to 24 again and copy those from column F into column H, etc.

  8. #8
    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,152

    Re: Formula that sums a column and puts totals of 24 in other columns

    The attached is a VBA solution.

    Data in Sheet "Pallets" must preferably be sorted in Descending order of Column F BUT it will work with F unsorted.

    I have added data into F just for testing purposes.

    Ranges within the macro may need to be changed (no doubt) to match your real data although I have tried to make everything dynamic.


    Click RUN to execute macro

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 11-08-2015 at 05:35 PM.

  9. #9
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Hi John,

    Thanks very much for your solution. I have had a play around with the sheet and works great.
    The only exception is that I have not written any VBA and is out of my league.
    While having a look play with the sheet all these #N/A's appeared and I am clueless on how to fix.
    I have reattached the file, are you able to have another look at it?

    Thanks for your time

    Michael

  10. #10
    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,152

    Re: Formula that sums a column and puts totals of 24 in other columns

    Hi,

    See attached for updates to macro.

    I discovered other "problems" doing further testing while addressing your query so I'm hoping all are cleared now.

    John
    Attached Files Attached Files
    Last edited by JohnTopley; 11-09-2015 at 08:55 AM.

  11. #11
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Hi John

    Thanks for looking over again, but the attachment appears to be invalid??

    Michael

  12. #12
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    tried once again, worked this time

  13. #13
    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,152

    Re: Formula that sums a column and puts totals of 24 in other columns

    I can Open/Download O.K.

    What error message do you get?

  14. #14
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Sorry John,

    Doesn't seem to be updating. I have changed some crate amounts, then clicked run, nothing happened. Macros have been enabled, just wondering if im missing something?

    Michael

  15. #15
    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,152

    Re: Formula that sums a column and puts totals of 24 in other columns

    If you are updating "Crate Amounts" then check formulae in E and F.

    I simply typed data into F so "destroyed" any formula you had in that column.

    I added the formula (=ROUNDUP(E2,0)) at this end and worked OK.

  16. #16
    Registered User
    Join Date
    11-04-2015
    Location
    Adelaide, South Australia
    MS-Off Ver
    Pro plus 2016
    Posts
    19

    Re: Formula that sums a column and puts totals of 24 in other columns

    Thanks John,
    This is working perfectly, I appreciate your help.

    Michael

+ 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. can a columns formula change when the column reaches different totals
    By whatwentwrong in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-22-2014, 12:49 PM
  2. [SOLVED] Divided sums of 2 columns with denominator changing based on blank values in a column
    By cujofreak in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2013, 11:16 AM
  3. [SOLVED] add two sums and return blank cell when sum value totals zero
    By AMD1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2013, 03:06 PM
  4. getting sums and totals
    By LiLi1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 06:51 PM
  5. A formula to work out different sums in one column
    By Michael6 in forum Excel General
    Replies: 14
    Last Post: 10-13-2009, 07:23 AM
  6. How to sum the totals on one column, if two other columns are true?
    By cheesysocks in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-27-2008, 10:38 AM
  7. Rows Totals, Sums.
    By Soplinx in forum Excel General
    Replies: 4
    Last Post: 11-08-2006, 12:33 AM

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