adding more to formula

Patcheen

Active Member
Joined
Sep 28, 2015
Messages
388
Office Version
  1. 365
Platform
  1. Windows
this formula works perfect until i add more to it
=MAX(FREQUENCY(IF(ISNUMBER(MATCH('Match Database'!$H$2:$H$5000,{"Won","Drew"},0)),ROW('Match Database'!$H$2:$H$5000)),IF('Match Database'!$H$2:$H$5000="Lost",ROW('Match Database'!$H$2:$H$5000)))) (which is an array formula)

=MAX(FREQUENCY(IF(ISNUMBER(MATCH('Match Database'!$H$2:$H$5000,{"Won","Drew"},0)),ROW('Match Database'!$H$2:$H$5000)),IF('Match Database'!$H$2:$H$5000="Lost",ROW('Match Database'!$H$2:$H$5000)))),IF('Match Database'!$H$2:$H$5000="Lost",ROW('Match Database'!$h$2:$h$5000),ROW('Match Database'!$g$2:$g$5000,"home") it says you have entered too many arguments for this function......

so what am i missing

TIA
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
This section
=MAX(FREQUENCY(IF(ISNUMBER(MATCH('Match Database'!$H$2:$H$5000,{"Won","Drew"},0)),ROW('Match Database'!$H$2:$H$5000)),IF('Match Database'!$H$2:$H$5000="Lost",ROW('Match Database'!$H$2:$H$5000))))
has an equal number of open/close brackets so by the end of this, your MAX function has finished. You then have your IF sort of stuck on in limbo. I suspect you should delete the final bracket of the bit I have quoted and put it at the end of your function.
 
Upvote 0
thank you as i stated that works fine without this ,ROW('Match Database'!$g$2:$g$5000,"home i want to add that to it but when i do i get "you have entered too many arguments for this function......"
 
Upvote 0
Looks like you need to use the MATCH function as you did in the first bit of your formula after ISNUMBER. As you have it now, the new bit has two arguments in the ROW function: the range and the word "home".
 
Last edited:
Upvote 0
The ROW function expects just a number. It won't accept the "home". I think you need to use the INDIRECT and MATCH functions to find the position of the value of "home" in column Q. Something like:
=ROW(INDIRECT("Q" & MATCH("home",
'Match Database'!$g$2:$g$5000
)))+1
The +1 is to give you the actual row number as you are looking from row 2, but you could probably use Q:Q and omit the +1.
 
Upvote 0

Forum statistics

Threads
1,214,895
Messages
6,122,128
Members
449,066
Latest member
Andyg666

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