+ Reply to Thread
Results 1 to 8 of 8

Calculate TOTAL(S) to display 2 different SUMs with excess of the second to add to first

  1. #1
    Registered User
    Join Date
    11-16-2020
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    4

    Calculate TOTAL(S) to display 2 different SUMs with excess of the second to add to first

    Hello,

    I'm looking for a formula to do the following, and have no idea how.

    I have 3 main columns, A, B and C. Under each column I have 2 further columns, Boxes and Packs. One box contains 30 packs.

    Under A I have 3 boxes and 15 packs. Under B I have 1 box and 25 packs. Under C I have 4 boxes and 5 packs.

    At the end I have total, which I'd like to say how many full boxes I have and how many packs that do not make up a full box. Does that make sense?

    So 3 boxes + 1 box + 4 boxes = 8...easy enough.

    15 packs + 25 packs + 5 packs = 45 packs = 1 box and 15 packs.

    This brings the total boxes to 9.

    I'd like excel to display 9 boxes and 15 packs, no idea how to do this. Can be in 2 columns.

    Does this make sense? Can anyone help?

    Thanks!
    Last edited by Oktober; 11-16-2020 at 11:18 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365
    Posts
    19,901

    Re: How do I input a formula to do the following...

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Registered User
    Join Date
    11-16-2020
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    4

    Re: How do I input a formula to do the following...

    Hello Alan,

    I changed the title. I have no idea even how to explain what I'm trying to do as I am fairly new to excel.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... based in Ireland
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    30,754

    Re: Need Cell Calculation Formula. Not sure how to explain, please read.

    It's never easy to find the right words!!

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please DO NOT attach a picture of an Excel sheet (I do not have the patience to re-type any/all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. For example, don't show text in a column if it's really a number. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually). To be honest, I am not interested in seeing a non-working formula... or a pile of blank cells. However, I am very interested in seeing your EXPECTED results in their EXPECTED location.

    4. Try not to use merged cells. They cause lots of problems and are DEFINITELY best avoided!

    Unfortunately the attachment icon doesn't work at the moment. So,... instead click on Go Advanced (below the Edit Window) while composing your reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.
    Glenn



  5. #5
    Registered User
    Join Date
    11-16-2020
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    4

    Re: Need Cell Calculation Formula. Not sure how to explain, please read.

    Hello,

    So what I'm trying to do is to calculate the number of full boxes I have over 3 areas. The areas are ANNEX, BACK and BOOTH, as you can see in the attachment. There are 30 packs in a box.

    For item one I described above. Annex has 3 boxes and 15 packs, Back has 1 box and 25 packs and Booth has 4 boxes and 5 packs. This equals 8 boxes and 45 packs. Since I am trying to figure out FULL boxes, what I'd like to express on excel is 9 boxes and 15 packs, since the 45 packs equals 1 full box (remember that one box contains 30 packs), which is then added to the box total column and there is 15 packs remaining.

    For item two, we have in Annex 7 boxes and 20 packs, Back has 5 boxes and 17 packs, and Booth has 5 boxes and 27 packs. This equals 17 boxes and 64 packs. 64 packs contains 2 full boxes of 30. This would make the total I'd like to display on excel as 19 boxes and 4 packs. 17 boxes plus 2 boxes from the 64 packs containing enough for 2 full boxes of 30. Then there are 4 remaining packs.

    I hope this makes sense!
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... based in Ireland
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    30,754

    Re: Calculate TOTAL(S) to display 2 different SUMs with excess of the second to add to fir

    H5:
    =IF($A5="","",SUMIF($B$4:$G$4,"*box*",B5:G5)+INT(SUMIF(B4:$G$4,"*Pack*",B5:G5)/30))

    I5:
    =IF($A5="","",MOD(SUMIF(B4:$G$4,"*Pack*",B5:G5),30))
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-16-2020
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    4

    Re: Calculate TOTAL(S) to display 2 different SUMs with excess of the second to add to fir

    Wow! Thank you Glenn!!!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... based in Ireland
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    30,754

    Re: Calculate TOTAL(S) to display 2 different SUMs with excess of the second to add to fir

    You're welcome.

+ 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] Having user input and a formula (that can incorporate the user input) in the same cell.
    By Super_Bob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-21-2018, 05:55 AM
  2. Replies: 0
    Last Post: 12-26-2017, 03:54 AM
  3. [SOLVED] Worksheet Change? Use a formula cell as input and then revert back to original formula...
    By trickyricky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2016, 11:39 PM
  4. Replies: 1
    Last Post: 02-24-2013, 06:27 PM
  5. [SOLVED] external link reference formula inside formula user input
    By jscc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2012, 04:29 PM
  6. Replies: 3
    Last Post: 06-02-2012, 07:50 PM
  7. Automatic Formula Input Based on User Input Using a Macro
    By Drayloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2012, 12:10 PM

Tags for this Thread

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