#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Len Len is offline
external usenet poster
 
Posts: 162
Default Subtotal

Hi,

If you have a data that look like below, how to perform data sorting
and select the entire data range in order to run subtotal function :
-

Col A B
Row Qtr Sales
1 Ford
2 1st Qtr 427
3 2nd Qtr 845
4 3rd Qtr 667
5 4th Qtr 124
6 Toyota
7 1st Qtr 321
8 2nd Qtr 554
9 3rd Qtr 869
10 4th Qtr 773
11 Honda
12 1st Qtr 247
13 2nd Qtr 578
14 3rd Qtr 443
15 4th Qtr 310

Please help, thanks

Regards
Len
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Subtotal

You could use column C and put the type of vehicle on each row.

In C1: =A1 (To get started)
In C2: =if(b2="",a2,c1)
(and drag down.)

Then convert that column to values (edit|copy, edit|paste special values)

You could add headers to all 3 columns.

Filter by column B to show just the rows with blank cells in column B and delete
those rows.

Then show all the data and do your data|Subtotal (or data|Pivottable)





Len wrote:

Hi,

If you have a data that look like below, how to perform data sorting
and select the entire data range in order to run subtotal function :
-

Col A B
Row Qtr Sales
1 Ford
2 1st Qtr 427
3 2nd Qtr 845
4 3rd Qtr 667
5 4th Qtr 124
6 Toyota
7 1st Qtr 321
8 2nd Qtr 554
9 3rd Qtr 869
10 4th Qtr 773
11 Honda
12 1st Qtr 247
13 2nd Qtr 578
14 3rd Qtr 443
15 4th Qtr 310

Please help, thanks

Regards
Len


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Len Len is offline
external usenet poster
 
Posts: 162
Default Subtotal

On Jun 17, 10:14*pm, Dave Peterson wrote:
You could use column C and put the type of vehicle on each row.

In C1: *=A1 * * * *(To get started)
In C2: *=if(b2="",a2,c1)
(and drag down.)

Then convert that column to values (edit|copy, edit|paste special values)

You could add headers to all 3 columns.

Filter by column B to show just the rows with blank cells in column B and delete
those rows.

Then show all the data and do your data|Subtotal (or data|Pivottable)





Len wrote:

Hi,


* * * * If you have a data that look like below, how to perform data sorting
and select the entire data range in order to run subtotal function :
-


* * * * Col A * B
Row * * Qtr * * Sales
1 * * * Ford
2 * * * 1st Qtr 427
3 * * * 2nd Qtr 845
4 * * * 3rd Qtr 667
5 * * * 4th Qtr 124
6 * * * Toyota
7 * * * 1st Qtr 321
8 * * * 2nd Qtr 554
9 * * * 3rd Qtr 869
10 * * *4th Qtr 773
11 * * *Honda
12 * * *1st Qtr 247
13 * * *2nd Qtr 578
14 * * *3rd Qtr 443
15 * * *4th Qtr 310


Please help, thanks


Regards
Len


--

Dave Peterson- Hide quoted text -

- Show quoted text -


Hi Dave,

Thanks for your time to reply and it works

Regards
Lenard
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
macro excel subtotal in subtotal GBO Excel Discussion (Misc queries) 2 November 29th 07 02:15 PM
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
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 07:27 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"