Hi, we are trying to rank changes in quantity.
Some of the differences may be positive and some may be negative (i.e. some of the qty's may go up, some may come down), but what we are interested in ranking is the actual difference (not whether it is +ve or -ve)
Some of the data contains blanks, which actually should be zero's (but that's on the next round of tidying up duties for me!)
Hopefully this makes it a little bit clearer....
Huge thanks for taking a look!
Huge thanks for
Some of the differences may be positive and some may be negative (i.e. some of the qty's may go up, some may come down), but what we are interested in ranking is the actual difference (not whether it is +ve or -ve)
Some of the data contains blanks, which actually should be zero's (but that's on the next round of tidying up duties for me!)
Hopefully this makes it a little bit clearer....
excel-ranking-changes-in-qty-question.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Qty-A | Qty-B | +ve or -ve | Difference | Rank | Manual Notes (not needed) Regarding the "difference between A & B is…" | |||
2 | 50 | 50 | same | 0 | 5 | ...is 0, so this will be the smallest difference | |||
3 | 5 | positive | 5 | 4 | ...is 5, which is the second smallest difference NB some of the figures are blank (and blanks represent a "0") | ||||
4 | 100 | 50 | positive | 50 | 1 | ...is "50" which is the largest, therefore ranked highest = Number 1 | |||
5 | 85 | 45 | positive | 40 | 2 | ...is "40" which is the 2nd largest, therefore rank = 2 | |||
6 | 35 | 75 | negative | -40 | 2 | is "still 40" (regardless of it is positive or negative) which is the equal 2nd largest, therefore rank = 2 | |||
7 | 35 | 65 | negative | -30 | 3 | Difference between A & B is "30" which is the equal 3rd largest, therefore rank = 3 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C7 | C2 | =IF(D2>0,"positive",IF(D2<0,"negative","same")) |
D2:D7 | D2 | =+A2-B2 |
Huge thanks for taking a look!
Huge thanks for