richard_d1
New Member
- Joined
- Feb 7, 2022
- Messages
- 9
- Office Version
- 365
- Platform
- Windows
We manufacture products and then cut to them to the length customers ask for. I have a sheet containing all our orders, and I'm trying to write a formula to calculate what length 90% of our orders for each product are over. So if we have any offcuts, we know if it's worth saving them or not.
I've done this so far:
So in column G, it calculates what length 90% of our orders were over.
However, that doesn't take into account the size of the order. How can I change the formula to include the quantity?
Thanks.
I've done this so far:
Book2 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Order No | Product | Length | Quantity | Product | 90% | |||
2 | 1001 | B | 3.050 | 5 | A | 3.100 | |||
3 | 1002 | B | 2.125 | 28 | B | 3.606 | |||
4 | 1003 | A | 3.100 | 3 | C | 5.155 | |||
5 | 1004 | A | 3.100 | 1 | |||||
6 | 1005 | B | 2.400 | 4 | |||||
7 | 1006 | B | 2.400 | 6 | |||||
8 | 1007 | B | 2.400 | 8 | |||||
9 | 1008 | B | 2.200 | 11 | |||||
10 | 1009 | B | 3.050 | 10 | |||||
11 | 1010 | C | 4.750 | 151 | |||||
12 | 1011 | C | 5.200 | 19 | |||||
13 | 1012 | A | 1.400 | 4 | |||||
14 | 1013 | B | 3.050 | 20 | |||||
15 | 1014 | B | 3.600 | 10 | |||||
16 | 1015 | B | 3.660 | 2 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2:G4 | G2 | =PERCENTILE(IF(B:B=F2,C:C),1-$G$1) |
So in column G, it calculates what length 90% of our orders were over.
However, that doesn't take into account the size of the order. How can I change the formula to include the quantity?
Thanks.