Formula not working

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
388
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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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
1
2
3home games without a losshome games without a drawhome games without a win
4
5HomeLost
6AwayWon
7HomeWon241
8AwayLost
9AwayLost
10HomeWon
11AwayWon
12HomeLost
13AwayLost
14Homedrew
15AwayLost
16

<tbody>
</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,216,369
Messages
6,130,209
Members
449,567
Latest member
ashsweety

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