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.
 

Some videos you may like

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

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,471
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
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,912
Messages
5,514,127
Members
408,983
Latest member
mlee13

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top