#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default sum a subtotal

I have on column A country and on column A City.
I want to have two subtotals.
I want to sum by city and then by country.

Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 171
Default sum a subtotal

Check out the SUMIF formula...

Mark Ivey

"Raul Sousa" wrote in message
...
I have on column A country and on column A City.
I want to have two subtotals.
I want to sum by city and then by country.

Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default sum a subtotal

How does Excel know the difference between a country and a city?

Either put the cities and countries in different columns, or create a helper
column which identifies whether you have a city or country. Sort by country,
and then subtotal.

Regards,
Fred.

"Raul Sousa" wrote in message
...
I have on column A country and on column A City.
I want to have two subtotals.
I want to sum by city and then by country.

Is this possible?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default sum a subtotal

I have Country in columns A and city in column B.
I have it sorted by country then by city.
My problem is that I need a sum by city then by country.
I can only do a subtotal. either by country OR by city. I need the subtotal
by country AND by city.


"Fred Smith" wrote:

How does Excel know the difference between a country and a city?

Either put the cities and countries in different columns, or create a helper
column which identifies whether you have a city or country. Sort by country,
and then subtotal.

Regards,
Fred.

"Raul Sousa" wrote in message
...
I have on column A country and on column A City.
I want to have two subtotals.
I want to sum by city and then by country.

Is this possible?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default sum a subtotal

In your first post, you said that both city and country were in column A.
That was the source of the confusion.

To do the subtotal, I'm assuming you are using the DataSubtotal command. If
so, do it in two steps. First, subtotal by country. Then subtotal by city,
but uncheck the Replace current subtotals box. That will leave your country
subtotals in place, and add city subtotals.

Regards,
Fred.

"Raul Sousa" wrote in message
...
I have Country in columns A and city in column B.
I have it sorted by country then by city.
My problem is that I need a sum by city then by country.
I can only do a subtotal. either by country OR by city. I need the
subtotal
by country AND by city.


"Fred Smith" wrote:

How does Excel know the difference between a country and a city?

Either put the cities and countries in different columns, or create a
helper
column which identifies whether you have a city or country. Sort by
country,
and then subtotal.

Regards,
Fred.

"Raul Sousa" wrote in message
...
I have on column A country and on column A City.
I want to have two subtotals.
I want to sum by city and then by country.

Is this possible?




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
How do I Subtotal, then Sort by Subtotal Amounts? dnamertz Excel Discussion (Misc queries) 3 October 29th 06 12:17 AM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
Bolding the subtotal lines automaticlly When using the Subtotal fu 06Speed6 New Users to Excel 2 October 5th 06 03:52 PM
copy subtotal value only, subtotal value can be vlookup by others BB Excel Discussion (Misc queries) 1 June 28th 06 11:10 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


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

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"