Sumproduct?

shemayisroel

Well-known Member
Joined
Sep 11, 2008
Messages
1,867
Hi,


Can't seem to figure this out, formula is

=SUMPRODUCT(--(ISNUMBER(MATCH(M4:M48,{"HIT","MISS"},0))))

In M4:M48 are results from formulas either returning HIT, MISS or blank.

The SUMPRODUCT formula returns 0 but there is actually HIT or MISS in the range. When I manully type over the rannge with either HIT or MISS the SUMPRODOUCT formula returns the expected result :confused:

Checked, calculation, format of cell etc
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hello,

May be M4:M48 have extra spaces, like 'Hit ', 'Miss '. if you just have 2 criterias try this,

=SUM(COUNTIF(M4:M48,{"*Hit*","*Miss*"}))
 
Upvote 0
Figured it out! Well sort of...

I was using the TODAY() function in the range to return a result (HIT/MISS), for some reason this was killing the SUMPRODUCT formula. Don't need to know why I just used a work around.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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