complex sumif formula needed

ShanaVT

Board Regular
Joined
May 12, 2010
Messages
86
I have the below list of data and I need to sum everywhere column A lists "Wrong", however, I only want the formula to return 1 "Wrong" per name listed. Any help much appreciated.

OK</SPAN>Watts, Alan</SPAN>
Wrong</SPAN>Watts, Alan</SPAN>
OK</SPAN>Watts, Alan</SPAN>
OK</SPAN>Williams, Kelvin</SPAN>
OK</SPAN>Williams, Kelvin</SPAN>
Wrong</SPAN>Williams, Kelvin</SPAN>
Wrong</SPAN>Williams, Kelvin</SPAN>
OK</SPAN>Williams, Kelvin</SPAN>
OK</SPAN>Williams, Kelvin</SPAN>
Wrong</SPAN>Young, Alvin</SPAN>
OK</SPAN>Young, Alvin</SPAN>
OK</SPAN>Young, Alvin</SPAN>
Wrong</SPAN>Young, Alvin</SPAN>
Wrong</SPAN>Young, Alvin</SPAN>
Wrong</SPAN>Young, Alvin</SPAN>
OK</SPAN>Young, Alvin</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL></COLGROUP>
 

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
something like...

=SUM(IF(FREQUENCY(IF($A$2:$A$17="wrong",MATCH(B2:B17,B2:B17,0)),ROW(A2:A17)-ROW(A2)+1),1)) control shift enter

would return a count of 3

though I'm not sure that's exactly what you're looking for
 
Upvote 0
something like...

=SUM(IF(FREQUENCY(IF($A$2:$A$17="wrong",MATCH(B2:B17,B2:B17,0)),ROW(A2:A17)-ROW(A2)+1),1)) control shift enter

would return a count of 3

though I'm not sure that's exactly what you're looking for

Add a term for testing: B2:B17 <> "".
 
Upvote 0
Thanks Aladin,

I wasn't sure if it would be necessary to check B for "" to get the count

=SUM(IF(FREQUENCY(IF($A$2:$A$17="wrong",IF(B2:B17<>"",MATCH(B2:B17,B2:B17,0))),ROW(A2:A17)-ROW(A2)+1),1)) Control Shift Enter
 
Upvote 0
Thanks Aladin,

I wasn't sure if it would be necessary to check B for "" to get the count

=SUM(IF(FREQUENCY(IF($A$2:$A$17="wrong",IF(B2:B17<>"",MATCH(B2:B17,B2:B17,0))),ROW(A2:A17)-ROW(A2)+1),1)) Control Shift Enter

Always... We don't want a blank as a type (unless explicitly asked for).
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
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