formula error (not counting the rows)

BMD

Board Regular
Joined
Oct 5, 2005
Messages
211
This one is not adding up the stuff right

=SUMPRODUCT(INDIRECT("'"&C1&"'!G$3:G$"&C8)="Pass")*OR(("'"&C1&"'!I$3:I$"&C8)="Major")*(("'"&C1&"'!I$3:I$"&C8)="Minor")

AND/OR

=SUMPRODUCT(INDIRECT("'"&C1&"'!G$3:G$"&C8)="Pass")*OR(("'"&C1&"'!I$3:I$"&C8)="Major",("'"&C1&"'!I$3:I$"&C8)="Minor")

If the test pass and has a major or minor add them all up

Thanks,
Bruce.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try...

=SUMPRODUCT(--(INDIRECT("'"&C1&"'!G3:G"&C8)="Pass"),--(ISNUMBER(MATCH(INDIRECT("'"&C1&"'!I3:I"&C8),{"Major","Minor"},0))))

Hope this helps!
 
Upvote 0
Thank you,
How do I do it if they are in two different colmuns?

=SUMPRODUCT(indirect("'"&C1&"'!G$3:G$"&c8)="Pass")*("'"&C1"'!H$3:H$"&C8)="High",("'"&C1"'!I$3:I$"&C8(="Major"))

It passed and is high and has a major on it?

Thanks,
Bruce.
 
Upvote 0
Got it!!!!!!!!!!!!!1
=SUMPRODUCT(--(INDIRECT("'"&C1&"'!G3:G"&C8)="Pass"),--(ISNUMBER(MATCH(INDIRECT("'"&C1&"'!H3:H"&C8),{"High"},0))),--(ISNUMBER(MATCH(INDIRECT("'"&C1&"'!I3:I"&C8),{"Major"},0))))
 
Upvote 0
This board is wonderful,,,,, and a time and life saver.

Thank you, all who have helped.
 
Upvote 0
The following would suffice...

=SUMPRODUCT(--(INDIRECT("'"&C1&"'!G3:G"&C8)="Pass"),--(INDIRECT("'"&C1&"'!H3:H"&C8)="High"),--(INDIRECT("'"&C1&"'!I3:I"&C8)="Major"))

Hope this helps!
 
Upvote 0
Yes, but in the one I posted

=SUMPRODUCT(--(INDIRECT("'"&C1&"'!G3:G"&C8)="Pass"),--(ISNUMBER(MATCH(INDIRECT("'"&C1&"'!H3:H"&C8),{"High"},0))),--(ISNUMBER(MATCH(INDIRECT("'"&C1&"'!I3:I"&C8),{"Major"},0))))

I can also have {"High","H"} if they only but a H, M, or L for High, Medium and Low.

I tried to remove the isnumber as I'm not using it but the formula failed. I will keep tinkering........

Thanks,
Bruce.
 
Upvote 0
Sure, if you have more than one criteria for a column, you can use ISNUMBER/MATCH. Otherwise, if you only have one criterion, ISNUMBER/MATCH isn't necessary.
 
Upvote 0

Forum statistics

Threads
1,224,395
Messages
6,178,355
Members
452,841
Latest member
GenAkaman

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