Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Sumproduct function?

In workbook 1, I have a table with data from various companies:

Company x Company y Company z
apples
apples
oranges
peaches
oranges

In workbook 2, I have the following summary table:

Company ?
apples
oranges
peaches

How do I sum for the values in colum a based on the company name I put at
the head of column b? I have tried a sumproduct formula but I keep getting a
#value error.

Thanks
Claudia
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Sumproduct function?

Hi!

If I understand:

A2:A6 =
apples
apples
oranges
peaches
oranges


B1:D1 =
Company x Company y Company z


A10 =
apples


B9 =
Company ?


=SUMIF(A2:A6,A10,INDEX(B2:D6,,MATCH(B9,B1:D1,0)))

Biff

"Claudia" wrote in message
...
In workbook 1, I have a table with data from various companies:

Company x Company y Company z
apples
apples
oranges
peaches
oranges

In workbook 2, I have the following summary table:

Company ?
apples
oranges
peaches

How do I sum for the values in colum a based on the company name I put at
the head of column b? I have tried a sumproduct formula but I keep
getting a
#value error.

Thanks
Claudia



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Sumproduct function?

Biff,

Thanks a bunch. It works like a charm.

Claudia


"Biff" wrote:

Hi!

If I understand:

A2:A6 =
apples
apples
oranges
peaches
oranges


B1:D1 =
Company x Company y Company z


A10 =
apples


B9 =
Company ?


=SUMIF(A2:A6,A10,INDEX(B2:D6,,MATCH(B9,B1:D1,0)))

Biff

"Claudia" wrote in message
...
In workbook 1, I have a table with data from various companies:

Company x Company y Company z
apples
apples
oranges
peaches
oranges

In workbook 2, I have the following summary table:

Company ?
apples
oranges
peaches

How do I sum for the values in colum a based on the company name I put at
the head of column b? I have tried a sumproduct formula but I keep
getting a
#value error.

Thanks
Claudia




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Sumproduct function?

You're welcome. Thanks for the feedback!

Biff

"Claudia" wrote in message
...
Biff,

Thanks a bunch. It works like a charm.

Claudia


"Biff" wrote:

Hi!

If I understand:

A2:A6 =
apples
apples
oranges
peaches
oranges


B1:D1 =
Company x Company y Company z


A10 =
apples


B9 =
Company ?


=SUMIF(A2:A6,A10,INDEX(B2:D6,,MATCH(B9,B1:D1,0)))

Biff

"Claudia" wrote in message
...
In workbook 1, I have a table with data from various companies:

Company x Company y Company z
apples
apples
oranges
peaches
oranges

In workbook 2, I have the following summary table:

Company ?
apples
oranges
peaches

How do I sum for the values in colum a based on the company name I put
at
the head of column b? I have tried a sumproduct formula but I keep
getting a
#value error.

Thanks
Claudia






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skipping cells when using SUMPRODUCT function Jason Excel Discussion (Misc queries) 2 June 8th 06 02:30 PM
Summing multiple tab using sumproduct function Steve Excel Worksheet Functions 1 May 5th 06 10:17 PM
use of sumproduct function R..VENKATARAMAN Excel Worksheet Functions 4 January 23rd 06 02:33 AM
Sumproduct function neil Excel Discussion (Misc queries) 1 August 11th 05 09:19 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 01:59 PM.

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

About Us

"It's about Microsoft Excel"