Calculating Number of Boxes

sduttexcel

New Member
Joined
Mar 16, 2018
Messages
22
Need to calculate number of boxes. Need to add "TM" in another row and highlight in yellow and another blank row. Total the qty.

5 In Big Box
3 or 4 in Medium Box
1 or 2 in small box

TM names vary from 1 to 15

Here is the example

Any formula to do this

TMAddressCityStateZipRepQtyLarge BoxMedium BoxSmall Box
Sunil Dutt123 Any streetAnytownUS12345John Smith4
Sunil Dutt123 Any streetAnytownUS12345Sam Lee2
Sunil Dutt123 Any streetAnytownUS12345Bill Smith3
Sunil Dutt123 Any streetAnytownUS12345Mike Roy7
Sunil Dutt123 Any streetAnytownUS123451631
George Low678 Super RdAny CityCA94010Edward2
George Low678 Super RdAny CityCA94010Ruby1
George Low678 Super RdAny CityCA94010Michael5
George Low678 Super RdAny CityCA94010zinc4
George Low678 Super RdAny CityCA94010Albert3
George Low678 Super RdAny CityCA94010152

<tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try:

H2 =IF(G2/5>=1,ROUNDDOWN(G2/5,0),0)

I2 =IF((G2-IFERROR(H2*5,0))/3>=1,ROUNDDOWN((G2-IFERROR(H2*5,0))/3,0),0)

J2 =ROUNDUP((G2-IF(IFERROR((I2*4),0)+IFERROR((H2*5),0)>G2,IFERROR((I2*3),0)+IFERROR((H2*5),0),IFERROR((I2*4),0)+IFERROR((H2*5),0)))/2,0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top