Help~ Ranking (Multiple conditions) - Missing Ranking Numbers >_<

Chanzuihou

New Member
Joined
Jul 28, 2016
Messages
19
Hi all,

I am building up a forecast model, which will need 2 Rankings:
1) for Each Customer, Rank each Product Category sales total
2) for Each Customer, and its Each Product Category, Rank each Items' sales total

I managed to have 2 ranking formula working, BUT have a couple of problems
- For customer# 4013 (same for #4373), why for it's Product Category's sales total, Ranking starts from 0? How can I get the formula to rank from 1? Some of my other customers Product Category all starts from 1?

- For customer #4373, and for its Product #210, why ranking #8 is missing? How can the formula of Ranking NOT skip a number?

Thanking for everyone who can help in advance, sincerely.



Excel 2012
ABCDEFGH
1Item No.Item DescriptionProduct CategoryCustomer No.2016 YTD SalesPG Subtotal (per Customer)Ranking - by PG (per Customer)Ranking - by Item (per Customer, per PG)
23310137.000CAL242, WALL CONTROL1304373014,53829
340801-02AIRBOX TRUMA AVENTA MK2 AIRCON130437319914,53828
444033-02TRUMA SAPHIR COMFORT RC AIRCON1304373014,53829
544091-52TRUMA AVENTA A/C ROOF/SEC MK213043731,63214,53825
650500-02LEVEL CHECK GAS BOTTLE TRUMA19040134,29063,18226
75750001CORMORANT MK2 ROOFTOP UNIT1304373014,53829
88100001IBIS 3 ROOFTOP UNIT13043731,44014,53827
9AVENTA MARK2-KITTRUMA AVENTA MK2 AIRCON + ADB1304373014,53829
10IIIF11COOLFREEZE 10.5L330401363,883485,72902
11IIIF11COOLFREEZE 10.5L3304373027,63217
12IIIF3532.5L CDF35 FRIDGE3304373027,63217
13IIIF35 PWIPKCDF35 + EPS817 + AC-CB-CDF35330401357,120485,72903
14CF-110WIPVERBCF-110ACVERB33040135,264485,729015
15CF-110WIPVERBCF-110ACVERB3304373027,63217
16CF18CF18 COMPRESSOR FRIDGE330401335,585485,72906
17CF18CF18 COMPRESSOR FRIDGE330437350827,63216
18CF-25VERACF-25VERA33040139,824485,729013
19CF40 PWIPKCF-40ACVERB + AC-CB-CF40330401373,206485,72901
20CF40 PWIPKCF-40ACVERB + AC-CB-CF403304373027,63217
21CF50 PWIPKCF-50ACVERB + AC-CB-CF50330401342,864485,72905
22CF50 PWIPKCF-50ACVERB + AC-CB-CF5033043731,45327,63215
23CF-50WIPVERBCF-50ACVERB3304373027,63217
24CF-80WIPDZVERBCF-80 Dual Zone33040130485,729018
25CF-80WIPVERB1CF-80ACVERB1330401310,530485,729012
26CFX-28FRIDGE/FZR COMP PORTABLE 28.2L33040136,539485,729014
27CFX-28FRIDGE/FZR COMP PORTABLE 28.2L33043731,45327,63214
28CFX-35FRIDGE/FZR COMP PORTABLE 34.5L330401319,220485,729011
29CFX-40FRIDGE/FZR COMP PORTABLE 41L330401330,884485,72907
30CFX-40FRIDGE/FZR COMP PORTABLE 41L33043731,81727,63213
31CFX40WFRIDGE OR FZR COMP PORTABLE33040130485,729018
32CFX-50FRIDGE/FZR COMP PORTABLE 50L330401320,349485,729010
33CFX-50FRIDGE/FZR COMP PORTABLE 50L33043733,05227,63212
34CFX50WFRIDGE OR FZR COMP PORTABLE33040130485,729018
35CFX-65FRIDGE/FZR COMP PORTABLE 65L330401321,404485,72909
36CFX-65FRIDGE/FZR COMP PORTABLE 65L3304373027,63217
37CFX-65DZFRIDGE & FZR COMP PORTABLE 61L330401353,494485,72904
38CFX-65DZFRIDGE & FZR COMP PORTABLE 61L3304373027,63217
39CFX-95DZ2FRIDGE & FZR COMP 2 LID 94.5L330401330,404485,72908
40CFX-95DZ2FRIDGE & FZR COMP 2 LID 94.5L330437319,34827,63211
41CFX95DZWFRIDGE & FZR COMP PORTABLE33040130485,729018
42CU84COOLMATIC COOLING UNIT 8421043731,45842,46707
43CU85COOLMATIC COOLING UNIT 8521043732,43142,46704
44CU86COOLMATIC COOLING UNIT 8621043731,45842,46707
45CU94COOLMATIC COOLING UNIT 9421043737,29842,46702
46CU95COOLMATIC COOLING UNIT 95210437315,15642,46701
47CU96COOLMATIC COOLING UNIT 9621043735,61442,46703
48CU97COOLMATIC COOLING UNIT 9721043732,21842,46705
49FJ2200-ADB-KITFJ2200 FRESHJET AIRCON + ADB13043731,65814,53824
50FJ3200-ADB-KITFJ3200 FRESHJET AIRCON + ADB13043733,31614,53821
51IBIS3-ADB-KITIBIS 3 + ADB1304373014,53829
52IBIS-ADB-KITIBIS MK2 + ADB13043731,55014,53826
53M-2073AGRAND AERO FLAT STD ARM19040135,60063,18224
54M-2899MILENCO MIRROR AERO WIDE PAIR19040136,75063,18223
55M-2912MILENCO MIRROR GRAND AERO PAIR190401327,20063,18221
56M-2936MILENCO LEVEL TRIPLE PAIR19040132,36063,18228
57M-3117MILENCO LEVEL INDICATOR GAUGE1904013063,182210
58M-3155MILENCO 400KG NOSE WGHT GAUGE19040133,54063,18227
59M-3896MILENCO MINI LEVEL T1 PAIR190401388263,18229
60M-3988MILENCO FALCON MIRROR TWIN PCK19040134,40063,18225
61P-CFX35WINTERCFX35 WINTER KIT33040133,343485,729016
62P-CFX40WINTERCFX40 WINTER KIT33040131,817485,729017
63SAPHIR R/C-KITTRUMA SAPHIR COMFORT RC AIRCON13043731,68314,53823
64SPARROW-ADB-KITSPARROW MK4 + ADB13043733,06014,53822
65VD03COOLMATIC EVAPORATOR LAME2104373042,467015
66VD05COOLMATIC EVAPORATOR PLAT2104373042,467015
67VD06COOLMATIC EVAPORATOR SPEI2104373042,467015
68VD08COOLMATIC EVAPORATOR WINK210437334242,467014
69VD09COOLMATIC EVAPORATOR KAST210437385542,467012
70VD14NCOOLMATIC EVAPORATOR UMLU21043731,34442,46709
71VD15COOLMATIC EVAPORATOR UMLU210437389642,467011
72VD16COOLMATIC EVAPORATOR UMLU210437389642,467010
73VD18COOLMATIC EVAPORATOR PLAT210437377942,467013
74VD21COOLMATIC EVAPORATOR21043731,72242,46706
75VS-11ROLL11" VACUUM SEALER ROLL TWIN PK1904013063,182210
76VS-8ROLL8" VACUUM SEALER ROLLS TWIN PK1904013063,182210
77VS-WIP/DCDOMETIC VACUUM SEALER19040138,16063,18222
78WIBB-110COOLICE 111L ROTOMOLD ICEBOX34040135,98581,27215
79WIBB-13COOLICE 13L ROTOMOLD ICEBOX34040139,40981,27214
80WIBB-22COOLICE 22L ROTOMOLD ICEBOX340401321,24681,27211
81WIBB-33COOLICE 33L ROTOMOLD ICEBOX340401316,41781,27212
82WIBB-42COOLICE 41L ROTOMOLD ICEBOX340401310,31381,27213
83WIBB-55COOLICE 55L ROTOMOLD ICEBOX34040134,33281,27216
84WIBB-70COOLICE 68L ROTOMOLD ICEBOX34040134,30781,27217
85WIBB-70 BLUEICEBOX 68L BLUE34040131,18281,272111
86WIBB-70 RED/MIDICEBOX 68L CARLTON MID34040131,05181,272112
87WIBB-70 YELLOWICEBOX 68L YELLOW34040132,10281,27219
88WIBB-85COOLICE 87L ROTOMOLD ICEBOX34040132,08581,272110
89WIBB-85WICEBOX 86L WHEELS34040132,84481,27218
90Z-M-2615MILENCO LEVEL QUATTRO PAIR1904013063,182210
91Z-M-2899MILENCO MIRROR AERO WIDE PAIR1904013063,182210
92Z-M-2912MILENCO MIRROR GRAND AERO PAIR1904013063,182210
93Z-M-2936MILENCO LEVEL TRIPLE PAIR1904013063,182210
94Z-M-3896MILENCO MINI LEVEL T1 PAIR1904013063,182210
Sheet1 (2)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
BTW, my formula for G2: =SUMPRODUCT(--(IF(FREQUENCY(IF($D$2:$D$1515=$D2,$F$2:$F$1515),IF($D$2:$D$1515=$D2,$F$2:$F$1515,0)),$F$2:$F$1515,-100)>F2))

formula for H2: =SUMPRODUCT(($D$2:$D$56507=$D2)*($C$2:$C$56507=$C2)*($E2<$E$2:$E$56507))+1


Both Ctrl+Shift+Enter

Really appreciate it~~
 
Upvote 0
Can anyone PLEASE help me with this, as I desperately would like to overcome these hurdles, so that we can start accurate forecasting ... ...

thanks in advance
 
Upvote 0
formula for H2: =SUMPRODUCT(($D$2:$D$56507=$D2)*($C$2:$C$56507=$C2)*($E2<$E$2:$E$56507))+1

Just looking at this formula (it doesn't need array entry), this is a standard approach for ranking with conditions and like RANK function, if there are duplicates (there are two items ranked 7) then there will also be gaps. I'd say that's normal, why do you need to eliminate gaps?
 
Upvote 0
Just looking at this formula (it doesn't need array entry), this is a standard approach for ranking with conditions and like RANK function, if there are duplicates (there are two items ranked 7) then there will also be gaps. I'd say that's normal, why do you need to eliminate gaps?

Thanks barry, the reason I will need to eliminate gaps, is because I have another sheet to show top 10 ranking items. So if there are gaps in between, in this example, ranking number 8 will be blank.

Is there any way to eliminate gaps? Also from your view, how to I need to improve this formula? How to get rid of the array entry?

Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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