A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multi column sumproduct



 
 
Thread Tools Display Modes
  #1  
Old April 17th, 2009, 03:40 PM posted to microsoft.public.excel.worksheet.functions
Todd
external usenet poster
 
Posts: 377
Default Multi column sumproduct

I think the sumproduct is the correct formula but I can't get this right. I
am trying to get a total amount of parts though multiple issues as shown
below:

Column g h i j k l m
n
pears 3 apples 2 oranges 5 bananas 6
oranges 5 bananas 4 apples 8 pears 10

As you can see, each coulmn will not equal the same item. I need the total
of each item for the whole sheet. The information will be updated monthly so
the totals will change. My goal is to, on another spreadsheet within the
same workbook, have the items in column a and the totals in column b. All
help is much appreciated.
  #2  
Old April 17th, 2009, 04:04 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Multi column sumproduct

Try this:

Sheet 2
criteria start from A2
In B2: =SUMPRODUCT(--(Sheet1!$G$2:$M$300=$A2),Sheet1!$H$2:$N$300)
copy down


"Todd" wrote:

I think the sumproduct is the correct formula but I can't get this right. I
am trying to get a total amount of parts though multiple issues as shown
below:

Column g h i j k l m
n
pears 3 apples 2 oranges 5 bananas 6
oranges 5 bananas 4 apples 8 pears 10

As you can see, each coulmn will not equal the same item. I need the total
of each item for the whole sheet. The information will be updated monthly so
the totals will change. My goal is to, on another spreadsheet within the
same workbook, have the items in column a and the totals in column b. All
help is much appreciated.

  #3  
Old April 17th, 2009, 06:02 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Multi column sumproduct

Table on Sheet2

Unique items listed on a different sheet starting in cell A2.

Enter this formula in B2 and copy down as needed:

=SUMIF(Sheet2!G:M,A2,Sheet2!H:N)

--
Biff
Microsoft Excel MVP


"Todd" wrote in message
...
I think the sumproduct is the correct formula but I can't get this right. I
am trying to get a total amount of parts though multiple issues as shown
below:

Column g h i j k l m
n
pears 3 apples 2 oranges 5 bananas
6
oranges 5 bananas 4 apples 8 pears
10

As you can see, each coulmn will not equal the same item. I need the
total
of each item for the whole sheet. The information will be updated monthly
so
the totals will change. My goal is to, on another spreadsheet within the
same workbook, have the items in column a and the totals in column b. All
help is much appreciated.



  #4  
Old April 17th, 2009, 09:53 PM posted to microsoft.public.excel.worksheet.functions
Todd
external usenet poster
 
Posts: 377
Default Multi column sumproduct

Worked perfectly! Thank you!

"Teethless mama" wrote:

Try this:

Sheet 2
criteria start from A2
In B2: =SUMPRODUCT(--(Sheet1!$G$2:$M$300=$A2),Sheet1!$H$2:$N$300)
copy down


"Todd" wrote:

I think the sumproduct is the correct formula but I can't get this right. I
am trying to get a total amount of parts though multiple issues as shown
below:

Column g h i j k l m
n
pears 3 apples 2 oranges 5 bananas 6
oranges 5 bananas 4 apples 8 pears 10

As you can see, each coulmn will not equal the same item. I need the total
of each item for the whole sheet. The information will be updated monthly so
the totals will change. My goal is to, on another spreadsheet within the
same workbook, have the items in column a and the totals in column b. All
help is much appreciated.

  #5  
Old April 18th, 2009, 12:42 AM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Multi column sumproduct

You're Welcome!

"Todd" wrote:

Worked perfectly! Thank you!

"Teethless mama" wrote:

Try this:

Sheet 2
criteria start from A2
In B2: =SUMPRODUCT(--(Sheet1!$G$2:$M$300=$A2),Sheet1!$H$2:$N$300)
copy down


"Todd" wrote:

I think the sumproduct is the correct formula but I can't get this right. I
am trying to get a total amount of parts though multiple issues as shown
below:

Column g h i j k l m
n
pears 3 apples 2 oranges 5 bananas 6
oranges 5 bananas 4 apples 8 pears 10

As you can see, each coulmn will not equal the same item. I need the total
of each item for the whole sheet. The information will be updated monthly so
the totals will change. My goal is to, on another spreadsheet within the
same workbook, have the items in column a and the totals in column b. All
help is much appreciated.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.