Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default Sum on multiple columns

I am using a workbook which contains 3 sheets representing a country(Mexico,
Brazil, India) .In these sheets there are 4 columns which contain the
following:

(Customer Name) (Customer Account) (Dollar Amt) (Product Id)

There are multiple Product Id that can be charged to a customer account and
i am using a filter by product id to get sum amount of customers from each
country.How does one get a sum for all countrys combined?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Sum on multiple columns

To sum the dollar amount for a specified 'Product ID' for all three
sheets, try...

=SUMPRODUCT(SUMIF(INDIRECT("'"&{"Mexico","Brazil", "India"}&"'!D2:D100"),G
2,INDIRECT("'"&{"Mexico","Brazil","India"}&"'!C2:C 100")))

It assumes that the sheet names are Mexico, Brazil, and India, and that
on each sheet A2:D100 contains the data. Also, G2 contains the 'Product
ID' of interest. Adjust the range accordingly.

Hope this helps!

In article ,
jk wrote:

I am using a workbook which contains 3 sheets representing a country(Mexico,
Brazil, India) .In these sheets there are 4 columns which contain the
following:

(Customer Name) (Customer Account) (Dollar Amt) (Product Id)

There are multiple Product Id that can be charged to a customer account and
i am using a filter by product id to get sum amount of customers from each
country.How does one get a sum for all countrys combined?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default Sum on multiple columns

Thanks,
Would this work if i did not do a filter and the various Product ID were
displayed?

"Domenic" wrote:

To sum the dollar amount for a specified 'Product ID' for all three
sheets, try...

=SUMPRODUCT(SUMIF(INDIRECT("'"&{"Mexico","Brazil", "India"}&"'!D2:D100"),G
2,INDIRECT("'"&{"Mexico","Brazil","India"}&"'!C2:C 100")))

It assumes that the sheet names are Mexico, Brazil, and India, and that
on each sheet A2:D100 contains the data. Also, G2 contains the 'Product
ID' of interest. Adjust the range accordingly.

Hope this helps!

In article ,
jk wrote:

I am using a workbook which contains 3 sheets representing a country(Mexico,
Brazil, India) .In these sheets there are 4 columns which contain the
following:

(Customer Name) (Customer Account) (Dollar Amt) (Product Id)

There are multiple Product Id that can be charged to a customer account and
i am using a filter by product id to get sum amount of customers from each
country.How does one get a sum for all countrys combined?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Sum on multiple columns

Simply enter the 'Product ID' of interest in a cell, such as G2 in my
example, adjust the ranges (D2:D100 and C2:C100) accordingly, and the
formula will return the results for all sheets, regardless of whether
the data is filtered.

In article ,
jk wrote:

Thanks,
Would this work if i did not do a filter and the various Product ID were
displayed?

"Domenic" wrote:

To sum the dollar amount for a specified 'Product ID' for all three
sheets, try...

=SUMPRODUCT(SUMIF(INDIRECT("'"&{"Mexico","Brazil", "India"}&"'!D2:D100"),G
2,INDIRECT("'"&{"Mexico","Brazil","India"}&"'!C2:C 100")))

It assumes that the sheet names are Mexico, Brazil, and India, and that
on each sheet A2:D100 contains the data. Also, G2 contains the 'Product
ID' of interest. Adjust the range accordingly.

Hope this helps!

In article ,
jk wrote:

I am using a workbook which contains 3 sheets representing a
country(Mexico,
Brazil, India) .In these sheets there are 4 columns which contain the
following:

(Customer Name) (Customer Account) (Dollar Amt) (Product Id)

There are multiple Product Id that can be charged to a customer account
and
i am using a filter by product id to get sum amount of customers from
each
country.How does one get a sum for all countrys combined?

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default Sum on multiple columns

Thanks for the help Domenic. I tried keying manually and copy paste of you
formula but i get an error of missing parenthesis in the formula.Is there
somehthing else i could have done wrong?

"Domenic" wrote:

Simply enter the 'Product ID' of interest in a cell, such as G2 in my
example, adjust the ranges (D2:D100 and C2:C100) accordingly, and the
formula will return the results for all sheets, regardless of whether
the data is filtered.

In article ,
jk wrote:

Thanks,
Would this work if i did not do a filter and the various Product ID were
displayed?

"Domenic" wrote:

To sum the dollar amount for a specified 'Product ID' for all three
sheets, try...

=SUMPRODUCT(SUMIF(INDIRECT("'"&{"Mexico","Brazil", "India"}&"'!D2:D100"),G
2,INDIRECT("'"&{"Mexico","Brazil","India"}&"'!C2:C 100")))

It assumes that the sheet names are Mexico, Brazil, and India, and that
on each sheet A2:D100 contains the data. Also, G2 contains the 'Product
ID' of interest. Adjust the range accordingly.

Hope this helps!

In article ,
jk wrote:

I am using a workbook which contains 3 sheets representing a
country(Mexico,
Brazil, India) .In these sheets there are 4 columns which contain the
following:

(Customer Name) (Customer Account) (Dollar Amt) (Product Id)

There are multiple Product Id that can be charged to a customer account
and
i am using a filter by product id to get sum amount of customers from
each
country.How does one get a sum for all countrys combined?

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Sum on multiple columns

In article ,
jk wrote:

Thanks for the help Domenic. I tried keying manually and copy paste of you
formula but i get an error of missing parenthesis in the formula.Is there
somehthing else i could have done wrong?


Can you post the exact formula you're using?
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
using functions to compare multiple columns for mismatch of cells MDIAZ451 Excel Worksheet Functions 3 February 13th 06 02:49 AM
making multiple columns when printing long datasheet Piet Excel Discussion (Misc queries) 1 November 11th 05 04:00 AM
Justify text across multiple columns fins2r Excel Discussion (Misc queries) 4 October 26th 05 05:07 PM
Pivot Table combining multiple columns Pete Petersen Excel Discussion (Misc queries) 1 January 13th 05 07:56 PM
HOW TO MATCH MULTIPLE COLUMNS WITH OR WITHOUT GAPS IN eXCEL ? hims Excel Worksheet Functions 2 October 27th 04 07:03 PM


All times are GMT +1. The time now is 02:44 AM.

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

About Us

"It's about Microsoft Excel"