Calculating case quantities

THurley

New Member
Joined
Oct 31, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I take inventory daily and want to be able to enter a number of pieces then the excel spreadsheet calculate into cases. Case quantities differ between each product for example 6 #10 cans equal 1 case or 24 boxes equal 1 case of cornstarch; can some one help me please? Thank you!!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Welcome to the Forum!

Here are a couple of ideas that may help?

ABCDEFGH
1InventoryLookupTables
2
3ProductUnitsCasesProductCaseSize
4Cornflakes 375g151.25Cornstarch24
5Cornstarch251.04#10 can6
6Biscuits10#N/ACornflakes 750g6
7Fruitcakes80.40Cornflakes 375g12
8Fruitcakes20
9
10OR ....
11Cases
12ProductTypeUnits(rounded up)ProductTypeCaseSize
13Cornflakes375g pack152CornstarchSmall packet20
14#10 can254#10 can8
15Biscuits8#N/ACornflakes750g pack6
16FruitcakesLarge81Cornflakes375g pack12
17FruitcakesLarge18
18
Sheet1
Cell Formulas
RangeFormula
C4:C7C4=B4/XLOOKUP(A4,Product,CaseSize)
D13:D16D13=ROUNDUP(C13/XLOOKUP(1,(Product1=A13)*(Type1=B13),CaseSize1),0)
Named Ranges
NameRefers ToCells
CaseSize=Sheet1!$G$4:$G$8C4:C7
CaseSize1=Sheet1!$H$13:$H$17D13:D16
Product=Sheet1!$F$4:$F$8C4:C7
Product1=Sheet1!$F$13:$F$17D13:D16
Type1=Sheet1!$G$13:$G$17D13:D16
 
Upvote 0
Mr. Crump I have attaching a pic of the spread sheet I started that I am trying to incorporate your work if you could look at it? I am not great at excell but I can perform basic stuff. Please see attachment if that give a better idea what i am attempting to do. Thank you so much for your help.
Screenshot 2024-11-02 143507.png
 
Upvote 0
I'm not sure there's a lot we can add, based on just a picture.

Is Post #2 on the right track?

If so, perhaps you could try to implement an XLOOKUP using your layout, and post back if you are having problems?

It's best if you can use XL2BB to post (as I did in Post #2), so that we don't need to retype your data and formulae.
 
Upvote 0

Forum statistics

Threads
1,223,605
Messages
6,173,321
Members
452,510
Latest member
RCan29

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