Formula not working

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
391
Office Version
  1. 365
Platform
  1. Windows
Hi guys i have this formula -

=MAX(FREQUENCY(IF(ISNUMBER(MATCH($I$5:$I$200,{"won"},0)),ROW($I$5:$I$200)),IF($I$5:$I$200,"lost","drew"),0),ROW($I$5:$I$200),IF($H$5:$H$200="Home",ROW($I$5:$I$200)))))

when i enter it it says that ive entered too many arguments -- im trying to find how many games played at home without a loss -

which i changed from this (which is working perfectly) -
=MAX(FREQUENCY(IF(ISNUMBER(MATCH($I$5:$I$200,{"drew","won"},0)),ROW($I$5:$I$200)),IF($I$5:$I$200="lost",ROW($I$5:$I$200),IF($H$5:$H$200="Home",ROW($I$5:$I$200)))))


TIA in Advance
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
In addition to aladin request; my question what would the expected result of the red part of the formula be.

=MAX(FREQUENCY(IF(ISNUMBER(MATCH($I$5:$I$200,{"won"},0)),ROW($I$5:$I$200)),IF($I$5:$I$200,"lost","drew"),0),ROW($I$5:$I$200),IF($H$5:$H$200="Home",ROW($I$5:$I$200)))))

because like you've formulated currently, excel expects TRUE or FALSE input in range I5:I200 while the rest of the formula assumes it contains either Won, Lost or Drew.
 
Upvote 0
HISTU
HomeLost
AwayWon
HomeWon
AwayLost
AwayLost
HomeWon
AwayWon
HomeLost
AwayLost
Homedrew
AwayLost

<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]home games without a loss[/TD]
[TD="align: center"]home games without a draw[/TD]
[TD="align: center"]home games without a win[/TD]

[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="align: center"]5[/TD]

[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]

[TD="align: center"]6[/TD]

[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]1[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]15[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]16[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>

hope that helps its a rough idea
 
Last edited:
Upvote 0
your right it is indeed 3 my apologies

1. Control+shift+enter, not just enter:

=SUM(FREQUENCY(IF($A$5:$A$15="home",IF($B$5:$B$15="won",IF(1-($B$5:$B$15="lost"),ROW($A$5:$A$15)))),IF(1-($A$5:$A$15="home"),ROW($A$5:$A$15))))

2. Control+shift+enter, not just enter:

=SUM(FREQUENCY(IF($A$5:$A$15="home",IF(1-($B$5:$B$15="drew"),ROW($A$5:$A$15))),IF(1-($A$5:$A$15="home"),ROW($A$5:$A$15))))

3. Control+shift+enter, not just enter:

=SUM(FREQUENCY(IF($A$5:$A$15="home",IF(1-($B$5:$B$15="won"),ROW($A$5:$A$15))),IF(1-($A$5:$A$15="home"),ROW($A$5:$A$15))))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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