Index Match Large Frequency formula

bsquad

Board Regular
Joined
Mar 15, 2016
Messages
194
I am looking to add something like a FREQUENCY criteria to this

Code:
=IFERROR(INDEX($B$2:$B$5000,MATCH(SUMPRODUCT(LARGE(($E$2:$E$5000=1)*($M$2:$M$5000),ROWS($A$1:A1))),IF(($E$2:$E$5000=1),$M$2:$M$5000),0)),"")

I have my index categories in Col B, and my LARGE in Col M, Col E is just a Month - if its equal to a Month number. I would like to add a FREQUENCY criteria to my index categories (Col B). i.e. if the category/text occurs 4 times then do the index-match-large.
FREQUENCY or COUNTIF(s)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Care to describe what you want to solve in words along with an input sample and the output based this input sample?
 
Last edited:
Upvote 0
absolutely

so basically in the table below it would Index Cat 3 first since it has a count of 3 occurrences (most out of any of them) , next it would be Cat 4 then 5, then 2, since all 3 have 2 occurrences and if you were to sum by category and take the largest first it would be Cat 4, 5, 2. Its basically a smart filter or something like a pivot.

I must have an outdated Forum tools but ignore the first row and the first column
Excel 2013 32 bit
M
N
O
17
Col BCol ECol M
18
CategoryMONTHCost/Qty
19
Cat 1
1​
$1,202​
20
Cat 2
1​
$431​
21
Cat 3
1​
$2,404​
22
Cat 4
1​
$3,625​
23
Cat 5
1​
$793​
24
Cat 6
1​
$1​
25
Cat 7
1​
$1,162​
26
Cat 8
1​
$187​
27
Cat 9
1​
$560​
28
Cat 10
1​
$4,873​
29
Cat 11
1​
$0​
30
Cat 12
1​
$71​
31
Cat 13
1​
$0​
32
Cat 2
2​
$726​
33
Cat 3
2​
$1,202​
34
Cat 4
2​
$431​
35
Cat 5
2​
$2,404​
36
Cat 17
2​
$793​
37
Cat 19
2​
$1​
38
Cat 20
2​
$900​
39
Cat 21
2​
$839​
40
Cat 22
2​
$45​
41
Cat 3
2​
$2,404​

<tbody>
</tbody>
Sheet: Sheet2

<tbody>
</tbody>
 
Last edited:
Upvote 0
Ok, this is your input.


Book1
ABC
1CategoryMONTHCost/Qty
2Cat 11$1,202
3Cat 21$431
4Cat 31$2,404
5Cat 41$3,625
6Cat 51$793
7Cat 61$1
8Cat 71$1,162
9Cat 81$187
10Cat 91$560
11Cat 101$4,873
12Cat 111$0
13Cat 121$71
14Cat 131$0
15Cat 22$726
16Cat 32$1,202
17Cat 42$431
18Cat 52$2,404
19Cat 172$793
20Cat 192$1
21Cat 202$900
22Cat 212$839
23Cat 222$45
24Cat 32$2,404
Sheet1


Care to post the output which must obtain the above input?
 
Upvote 0
Yes, that was the input.

Here is the output

Cat 3$6,010
Cat 4$4,056
Cat 5$3,197
Cat 2$1,157

<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
</tbody>

I am not really looking for the 2nd column with the dollar amounts, thats just so you could visually see the logic for my desired order.
>>its like a hierarchy order of the count of categories, then by total dollar amount, if that makes sense
 
Upvote 0

Forum statistics

Threads
1,215,981
Messages
6,128,084
Members
449,418
Latest member
arm56

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