godzilla65
Board Regular
- Joined
- Nov 25, 2004
- Messages
- 125
Hi All,
I can not see where I am going wrong on this lovely day.
I tried a few attempts of Sumproduct and Sumif and their variations of the below to no avail.
=SUMPRODUCT((DATA!C7:O7=D4)*(DATA!B7:B14=B5),DATA!C8:O8)
=SUMPRODUCT(--(DATA!B8:B13=B6),--(DATA!D7:P7=D4),DATA!C8:P8)
=SUM(IF(DATA!B1:B13=B5,IF(DATA!B1:Q10=D4,DATA!B1:P10,0),0))
I will attempt to explain
I have a workbook, with two worksheets, one labeled FORMULA one labeled DATA
In Sheet1 ( FORMULA ) I have a range of numbers 10,20.30,40,50..in say column ie:B5:B10 in cell $D$4 I have the text KLM.
In Sheet2 ( DATA ) Column B8:B13 I also have numbers 10,20,30,40,50... now in Row D:D is where I have the word KLM and C:C all the numerics. ( The word KLM is not on every column) and I want to sum the values when the combination of number and the word KLM are found in the row
Eg DATA worksheet layout
TEST KLM TEST TEST KLM
140 33 10 33 33 50
150 0 25 14 14 25
160 50 30 15 15 40
170 8 0 1 2 0
So from my formula sheet, I have a formula that looks at Column B grabs the value eg: 140 and $D$4 the word KLM, and then checks the DATA sheet to find if their is a match by combo of the NUMBER AND TEXT and then sums the matching variables so in above the Result would be
140 = 60
150 = 50
160 = 70
Hope I have explained myself, and as always any help appreciated.
Cheers Eric
I can not see where I am going wrong on this lovely day.
I tried a few attempts of Sumproduct and Sumif and their variations of the below to no avail.
=SUMPRODUCT((DATA!C7:O7=D4)*(DATA!B7:B14=B5),DATA!C8:O8)
=SUMPRODUCT(--(DATA!B8:B13=B6),--(DATA!D7:P7=D4),DATA!C8:P8)
=SUM(IF(DATA!B1:B13=B5,IF(DATA!B1:Q10=D4,DATA!B1:P10,0),0))
I will attempt to explain
I have a workbook, with two worksheets, one labeled FORMULA one labeled DATA
In Sheet1 ( FORMULA ) I have a range of numbers 10,20.30,40,50..in say column ie:B5:B10 in cell $D$4 I have the text KLM.
In Sheet2 ( DATA ) Column B8:B13 I also have numbers 10,20,30,40,50... now in Row D:D is where I have the word KLM and C:C all the numerics. ( The word KLM is not on every column) and I want to sum the values when the combination of number and the word KLM are found in the row
Eg DATA worksheet layout
TEST KLM TEST TEST KLM
140 33 10 33 33 50
150 0 25 14 14 25
160 50 30 15 15 40
170 8 0 1 2 0
So from my formula sheet, I have a formula that looks at Column B grabs the value eg: 140 and $D$4 the word KLM, and then checks the DATA sheet to find if their is a match by combo of the NUMBER AND TEXT and then sums the matching variables so in above the Result would be
140 = 60
150 = 50
160 = 70
Hope I have explained myself, and as always any help appreciated.
Cheers Eric