SUMPRODUCT Help

Brent H

New Member
Joined
Aug 10, 2010
Messages
2
I need help with a text summing formula that incoperates two criteria over two worksheets. On worksheet One I have an account number in cells A1:A600, on worksheet Two I have corresponding account numbers in A1:A5000 (each account has multiple entries on this second worksheet). In addition on worksheet Two there is a question in cells B1:B5000 for each account with a Y or N answer in cells C1:C5000. I need a formula to enter on sheet one that will return the sum of Y answers for the account I specify in the formula.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

hiker95

Well-known Member
Joined
Apr 8, 2009
Messages
17,649
Brent H,

Welcome to the MrExcel forum.


Excel Workbook
ABC
11?Y
22?
33?Y
41?Y
52?Y
63?
71?Y
82?Y
93?Y
107?Y
117?
127?Y
137?
147?Y
157?Y
167?Y
17
Sheet2





Excel Workbook
ABCDE
11Account NbrY or NSum
227Y5
33
44
55
66
77
88
99
1010
11
Sheet1
 

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,484
Excel Workbook
ABC
11003
22001
33000
Sheet1
Excel 2007
Cell Formulas
RangeFormula
C1=SUMPRODUCT(--(Sheet2!$A$1:$A$10=Sheet1!A1),--(Sheet2!$C$1:$C$10="Y"))
C2=SUMPRODUCT(--(Sheet2!$A$1:$A$10=Sheet1!A2),--(Sheet2!$C$1:$C$10="Y"))
C3=SUMPRODUCT(--(Sheet2!$A$1:$A$10=Sheet1!A3),--(Sheet2!$C$1:$C$10="Y"))
Excel Workbook
ABC
1100Q1Y
2200Q2N
3200Q3N
4200Q4Y
5100Q1N
6300Q2N
7100Q3Y
8300Q4N
9200Q1N
10100Q2Y
Sheet2
Excel 2007
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,520
Messages
5,837,825
Members
430,517
Latest member
chessypack86

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
Top