CafeRoaster
New Member
- Joined
- Oct 31, 2022
- Messages
- 5
- Platform
- MacOS
Hello there. I run a coffee roastery, and we offer several sizes. I'm attempting to build a sheet that tells our packaging team how many 2-lb bags and how many 5-lb bags to prepare. Customers can order by the pound. We have a 2-lb bag that all weights below or equal to 2-lbs go into, and a 5-lb bag that all weights below or equal to 5-lbs go into.
For instance, if someone order 1 lb, that goes into a 2-lb bag. If someone orders 3 lbs, that goes into a 5-lb bag.
These amounts get filled into Column B as however much they ordered. Column A contains the customer account name and the word BULK.
I want to be able to distinguish between what goes into a 2-lb bag and what goes into a 5-lb bag.
Currently, I have this, but it isn't doing what I need it to do.
In order for this to work, I cannot simply use "<=2" and ">2", because if someone orders 12 lbs, for instance, that's 2x 5-lb bags and one 2-lb bag.
Cell B5 is doing the math for finding <=2, and Cell B6 is doing math for >2.
For instance, if someone order 1 lb, that goes into a 2-lb bag. If someone orders 3 lbs, that goes into a 5-lb bag.
These amounts get filled into Column B as however much they ordered. Column A contains the customer account name and the word BULK.
I want to be able to distinguish between what goes into a 2-lb bag and what goes into a 5-lb bag.
Currently, I have this, but it isn't doing what I need it to do.
Excel Formula:
=mod(SUMIFS(B11:B82,$A$11:$A$82,"*BULK*"),5)
In order for this to work, I cannot simply use "<=2" and ">2", because if someone orders 12 lbs, for instance, that's 2x 5-lb bags and one 2-lb bag.
Cell B5 is doing the math for finding <=2, and Cell B6 is doing math for >2.