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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,215,343
Messages
6,124,404
Members
449,156
Latest member
LSchleppi

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