Max Frequency w/ 2 criteria

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
673
Office Version
  1. 2019
Platform
  1. Windows
Hello,
Currently using =MAX(FREQUENCY(IF(A:A<>"", IF(A:A="W", ROW(A:A))), IF(A:A<>"", IF(A:A<>"W", ROW(A:A)))))
as an Array, which is working.
I'd like to add O:O = "Odd Ball" as a second criteria to count A:A="W".
Thank you.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Excel Formula:
=MAX(FREQUENCY(IF(A:A<>"", IF(AND(A:A="W",O:O="Odd Ball"), ROW(A:A))), IF(A:A<>"", IF(A:A<>"W", ROW(A:A)))))
 
Upvote 0
Excel Formula:
=MAX(FREQUENCY(IF(A:A<>"", IF(AND(A:A="W",O:O="Odd Ball"), ROW(A:A))), IF(A:A<>"", IF(A:A<>"W", ROW(A:A)))))
Results of your formula is "0", which is incorrect.
Sample Data:
My Wagers.xlsm
ABCDEFGHIJKLMNO
84L1/14NBASPRD$ 5.00$ 4.35GSWMEM-7($5.00)Orange - Q,S,V,X,AAAwayOdd Ball
85WNBASPRD$ 10.00$ 9.09PHIHOU-7.5$9.09Rank2, AD & AE >60%HomeOdd Ball
86NBASPRD$ 5.00$ 4.55
87NBASPRD$ 5.00$ 4.55
88NBASPRD$ 5.00$ 4.55
89NBASPRD$ 10.00$ 9.10
90$4.09
91$84.54Balance
92W1/15NBASPRD$ 10.00$ 8.70PHIDEN-4$8.70Rank2, AD & AE >60%HomeOdd Ball
93NBASPRD$ 5.00$ 4.55
94NBASPRD$ 5.00$ 4.55
95NBASPRD$ 5.00$ 4.55
96NBASPRD$ 5.00$ 4.55
97NBASPRD$ 10.00$ 9.10
98$8.70
99$93.24Balance
100W1/17NBASPRD$ 10.00$ 9.09NOPCHA-11.5$9.09Rank2, AD & AE >60%85.0%HomeOdd Ball
101WNBASPRD$ 10.00$ 8.70BOSSAS-16$8.70Rank2, AD & AE >60%85.0%HomeOdd Ball
102NBASPRD$ 10.00$ 9.09
103NBASPRD$ 5.00$ 4.55
104NBASPRD$ 5.00$ 4.55
105NBASPRD$ 10.00$ 9.10
106$17.79
107$111.03Balance
108L1/17NBASPRD$ 5.00$ 4.55INDPOR-5($5.00)Orange - Q,S,V,X,AA75.0%AwayOdd Ball
109LNBASPRD$ 5.00$ 4.55NOPPHO-2($5.00)M,N>0, Q,R>061.9%Home
110LNBASPRD$ 10.00$ 9.52BOSDEN-6.5($10.00)Orange - Q,S,V,X,AA75.0%HomeOdd Ball
111NBASPRD$ 5.00$ 4.55
112NBASPRD$ 5.00$ 4.55
113NBASPRD$ 10.00$ 9.10
114($20.00)
115$91.03Balance
NBA
 
Upvote 0
Excel Formula:
=MAX(FREQUENCY(IF(A:A<>"", IF(AND(A:A="W",O:O="Odd Ball"), ROW(A:A))), IF(A:A<>"", IF(A:A<>"W", ROW(A:A)))))
I modified your formula as an Array to:
=MAX(FREQUENCY(IF((A:A<>"")*(O:O="Odd Ball"), IF(A:A="W", ROW(A:A))), IF((A:A<>"")*(O:O="Odd Ball"), IF(A:A<>"W", ROW(A:A)))))
and its working correctly.
Thanks.
 
Upvote 0
Solution

Forum statistics

Threads
1,221,653
Messages
6,161,065
Members
451,684
Latest member
smllchng5

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