Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Question about sorting & subtotaling

I have an excel workbook that shows the results of an SQL query.

In it, I have a customer number, customer name, other data, and a number of
cases ordered. Each of the rows contains a product code in it that is the
result of the query.

I would like to be able to have the user expand the subtotaled lines in it,
and see what case quantities they had on certain skus.

However, they also want it subtotaled and sorted from highest to lowest.

Col A contains the customer number, column B contains the name. Column H
contains the number of cases.

As you know, subtotaling only gives you one field you can subtotal on, and I
need the results from 2 in that line that displays with the word Total at
the end when I'm done with subtotaling.

I'm not sure how to use 2 columns as input when the subtotal function only
gives you the ability to choose one. Am I missing something here, or is
there another way to do this?

Thanks,

Steve



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Question about sorting & subtotaling

I can merge the cells into one cell, but cannot subtotal on that field.


"Steve Chatham" wrote in message
...
I have an excel workbook that shows the results of an SQL query.

In it, I have a customer number, customer name, other data, and a number

of
cases ordered. Each of the rows contains a product code in it that is the
result of the query.

I would like to be able to have the user expand the subtotaled lines in

it,
and see what case quantities they had on certain skus.

However, they also want it subtotaled and sorted from highest to lowest.

Col A contains the customer number, column B contains the name. Column H
contains the number of cases.

As you know, subtotaling only gives you one field you can subtotal on, and

I
need the results from 2 in that line that displays with the word Total at
the end when I'm done with subtotaling.

I'm not sure how to use 2 columns as input when the subtotal function only
gives you the ability to choose one. Am I missing something here, or is
there another way to do this?

Thanks,

Steve





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Question about sorting & subtotaling

You can apply the Subtotal process several times on the same range. Each
time after the first, you should uncheck the replace existing subtotals
option. You might need to experiment with the order you specify the
subtotal column to get exactly what you want.

Regards,
Tom Ogilvy

"Steve Chatham" wrote in message
...
I have an excel workbook that shows the results of an SQL query.

In it, I have a customer number, customer name, other data, and a number

of
cases ordered. Each of the rows contains a product code in it that is the
result of the query.

I would like to be able to have the user expand the subtotaled lines in

it,
and see what case quantities they had on certain skus.

However, they also want it subtotaled and sorted from highest to lowest.

Col A contains the customer number, column B contains the name. Column H
contains the number of cases.

As you know, subtotaling only gives you one field you can subtotal on, and

I
need the results from 2 in that line that displays with the word Total at
the end when I'm done with subtotaling.

I'm not sure how to use 2 columns as input when the subtotal function only
gives you the ability to choose one. Am I missing something here, or is
there another way to do this?

Thanks,

Steve





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
Question About Sorting Nancy Excel Worksheet Functions 2 February 5th 10 07:03 PM
Excel - Sorting groups in groups due to subtotaling [email protected] Excel Worksheet Functions 3 April 4th 08 06:13 PM
Multistage sorting and subtotaling en route to a Pivot Table KG Excel Discussion (Misc queries) 0 April 16th 07 11:10 PM
Sorting after subtotaling Katherine Excel Discussion (Misc queries) 2 January 25th 05 08:48 PM
Sorting after subtotaling Katherine Excel Worksheet Functions 1 January 25th 05 08:33 PM


All times are GMT +1. The time now is 11:24 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"