Sumproduct mystery

ceej75

New Member
Joined
Jun 14, 2010
Messages
8
Hello all, I'm a bit stumped, hopefully someone can help me out.

On a prior project I used
=SUMPRODUCT((O253:O543="x")*(R253:X543="x")) to return the number of minority males O253:o543 had an "x" if the person was male and R253:x543 had an "x" in one of the column if the person was a minority. R was Black, S was Hispanic, T was asian and so on.
It worked just fine.

Today on a similar project I assigned numbers to the race so that I didn't have so many columns to deal with, so now instead of having columns r-s representing minority groups, I only have one column and the numbers 1-7, each one assigned to a different group.

=SUMPRODUCT((N3:N18="Male")*(O3:O18="1"))
Its not working... it keeps coming back with zero.
N column will always have either male female or unknown in it
O column will always have 0-7 in it. The 0 represents then unknown.

Thanks in advance for any thoughts.

Ceej.
 

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
=SUMPRODUCT((N3:N18="Male")*((O3:O18=1)*1)
gives me "#value!"

and =SUMPRODUCT(--(TRIM(N3:N18)="Male"),--(TRIM(O3:O18)+0=1))
gives me "0"

Neither are the correct responses :)

SO.. I think I'm going to go back to doing it the other way, but will keep trying things as they are presented. Now it's more of a personal mission to figure this out.

ceej.
 
Upvote 0
=SUMPRODUCT((N3:N18="Male")*((O3:O18=1)*1)
gives me "#value!"

and =SUMPRODUCT(--(TRIM(N3:N18)="Male"),--(TRIM(O3:O18)+0=1))
gives me "0"

Neither are the correct responses :)

SO.. I think I'm going to go back to doing it the other way, but will keep trying things as they are presented. Now it's more of a personal mission to figure this out.

ceej.

1) How many records do you think you have where the range in N is equal to Male and the range in O is equal to 1 at the same time?

2) What is the result of:

=COUNTIF(N3:N18,"Male")?

3) What is the result of:

=COUNTIF(O3:O18,1)

4) What is the result of:

=SUMPRODUCT(--(O3:O18=1))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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