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

1. ## 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!

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

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. ## 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. ## 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.

5. ## 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!

6. ## 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))

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

Wow! Thank you Glenn!!!

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

You're welcome.

##### Users Browsing this Thread

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

#### 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