mediumrare
New Member
- Joined
- Apr 7, 2021
- Messages
- 31
- Office Version
- 365
- Platform
- Windows
Hi there.
I am looking to work with product data, focusing and analysing it to show the unique products. The UNIQUE function works well (many thanks to @Fluff !) for products that do not have more than one unit of measurement (e.g., each, case). Is there a modifier or similar approach to return unique data but also let it display each UOM as well? I am, understandably, getting #SPILL! errors for these products, but do not know my way around this impasse.
The goal here being to apply these results, per customer, to help give them a unique, updated price list. It will take their previous margin and apply it to the new cost to give them their new price.
I am looking to work with product data, focusing and analysing it to show the unique products. The UNIQUE function works well (many thanks to @Fluff !) for products that do not have more than one unit of measurement (e.g., each, case). Is there a modifier or similar approach to return unique data but also let it display each UOM as well? I am, understandably, getting #SPILL! errors for these products, but do not know my way around this impasse.
dbg test.xls | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | testprod | testqty | testuom | ||||||
2 | 96024 | 24 | EA | 96024 | 60 | EA | |||
3 | 96024 | 1 | CS | 96024 | 11 | CS | |||
4 | 96024 | 1 | CS | 110542 | 19 | EA | |||
5 | 96024 | 36 | EA | 150325 | 17 | EA | |||
6 | 96024 | 1 | CS | 172010 | 1 | EA | |||
7 | 96024 | 2 | CS | 172141 | 1 | EA | |||
8 | 96024 | 6 | CS | 220200 | 23 | CS | |||
9 | 110542 | 15 | EA | ||||||
10 | 110542 | 4 | EA | ||||||
11 | 150325 | 6 | EA | ||||||
12 | 150325 | 5 | EA | ||||||
13 | 150325 | 6 | EA | ||||||
14 | 172010 | 1 | EA | ||||||
15 | 172141 | 1 | EA | ||||||
16 | 220200 | 8 | CS | ||||||
17 | 220200 | 15 | CS | ||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F4:F8 | F4 | =SUM(FILTER(testqty,testprod=E4)) |
G4:G8 | G4 | =UNIQUE(FILTER(testuom,testprod=E4)) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
testprod | =Sheet1!$A$2:$A$17 | F4:G8 |
testqty | =Sheet1!$B$2:$B$17 | F4:F8 |
testuom | =Sheet1!$C$2:$C$17 | G4:G8 |
The goal here being to apply these results, per customer, to help give them a unique, updated price list. It will take their previous margin and apply it to the new cost to give them their new price.
dbg test.xls | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | testprod | testqty | testuom | testdate | testprice | testgpm | testoldcost | product | qty | uom | testprice | testnewcost | testnewprice | |||
2 | 96024 | 24 | EA | 04/28/21 | $ 7.84 | 26 % | $ 3.71 | 96024 | 71 | #SPILL! | #SPILL! | $ 4.04 | $ 5.46 | |||
3 | 96024 | 1 | CS | 04/29/21 | $ 94.08 | 26 % | $ 3.71 | 96024 | 71 | #SPILL! | #SPILL! | $ 4.04 | $ 5.46 | |||
4 | 96024 | 1 | CS | 05/06/21 | $ 94.08 | 26 % | $ 3.71 | 110542 | 19 | EA | $ 1.26 | $ 0.85 | $ 1.25 | |||
5 | 96024 | 36 | EA | 05/14/21 | $ 7.84 | 26 % | $ 3.71 | 150325 | 17 | EA | $ 5.50 | $ 4.23 | $ 5.79 | |||
6 | 96024 | 1 | CS | 05/18/21 | $ 94.08 | 26 % | $ 3.71 | 172010 | 1 | EA | $ 30.79 | $ 24.86 | $ 33.60 | |||
7 | 96024 | 2 | CS | 05/20/21 | $ 94.08 | 26 % | $ 3.71 | 172141 | 1 | EA | $ 37.42 | $ 30.21 | $ 40.83 | |||
8 | 96024 | 6 | CS | 05/21/21 | $ 94.08 | 26 % | $ 3.71 | 220200 | 23 | CS | $ 28.80 | $ 4.50 | $ 5.23 | |||
9 | 110542 | 15 | EA | 05/10/21 | $ 1.26 | 32 % | $ 0.78 | |||||||||
10 | 110542 | 4 | EA | 05/12/21 | $ 1.26 | 32 % | $ 0.78 | |||||||||
11 | 150325 | 6 | EA | 02/10/21 | $ 5.50 | 27 % | $ 3.88 | |||||||||
12 | 150325 | 5 | EA | 03/24/21 | $ 5.50 | 27 % | $ 3.88 | |||||||||
13 | 150325 | 6 | EA | 04/09/21 | $ 5.50 | 27 % | $ 3.88 | |||||||||
14 | 172010 | 1 | EA | 05/13/21 | $ 30.79 | 26 % | $ 22.81 | |||||||||
15 | 172141 | 1 | EA | 01/21/21 | $ 37.42 | 26 % | $ 27.72 | |||||||||
16 | 220200 | 8 | CS | 06/17/20 | $ 28.80 | 14 % | $ 4.13 | |||||||||
17 | 220200 | 15 | CS | 06/30/20 | $ 28.80 | 14 % | $ 4.13 | |||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J2:J8 | J2 | =SUM(FILTER(testqty,testprod=I2)) |
K2:K8 | K2 | =UNIQUE(FILTER(testuom,testprod=I2)) |
L2:L8 | L2 | =UNIQUE(FILTER(testprice,testprod=I2)) |
N2:N8 | N2 | =M2/(1-(UNIQUE(FILTER(testgpm,testprod=I2)))) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
testgpm | =Sheet1!$F$2:$F$17 | N2:N8 |
testprice | =Sheet1!$E$2:$E$17 | L2:L8 |
testprod | =Sheet1!$A$2:$A$17 | N2:N8, J2:L8 |
testqty | =Sheet1!$B$2:$B$17 | J2:J8 |
testuom | =Sheet1!$C$2:$C$17 | K2:K8 |