Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Len Len is offline
external usenet poster
 
Posts: 162
Default Subgroup from the Main Group of Data Consolidate

Hi,

Is there vba codes that can help to create a subgroup with subtotal
from the main group of text string in column A after running excel
function of "Data Consolidate" under a workbook which has about 3000
rows with 15 columns, thereafter recalculate the subtotal for the main
group ( ie to deduct the subtotal of subgroup otherwise it will be
double counting )

E.g.
Before
ColA B
C D E F G------O
Row1-7 group John <blank 7 1
4 6 10
Row8-15 group Smith - MBA <blank 20 5 57 0
120
Row16-30 group Smith -LAW <blank 1 2 3
4 5
Row31-40 group Smith-Others <blank 2 4 6
8 12
Row41-45 group Peter <blank 3 6
9 13 26
Row 46 Subtotal 33
18 79 31 173


After
ColA B
C D E F G------O
Row1-7 group John <blank 7 1
4 6 10
Row8-15 group Smith - MBA <blank 20 5 57 0
120
Row16-30 group Smith -LAW <blank 1 2 3 4
5
Row31-40 group Smith-Others <blank 2 4 6 8
12
Row8-40 Subgroup Smith 23 11 66
12 137
Row41-45 group Peter <blank 3 6 9
13 26
Row 46 Subtotal 33
18 79 31 173


Any helps will be much appreciated and thanks in advance

Regards
Len





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
Consolidate data or group date? Skeetra27 Excel Discussion (Misc queries) 0 July 23rd 09 11:42 PM
min in a subgroup SteveC Excel Worksheet Functions 9 August 8th 08 06:03 PM
Matching max in a subgroup with corresponding data pair [email protected] Excel Worksheet Functions 2 June 30th 06 07:00 PM
how to create sub-groups within a main group decipherZ Excel Discussion (Misc queries) 0 February 15th 06 02:27 AM
Consolidate Group Into a Single Line Ricky Pang Excel Programming 8 October 1st 03 06:06 AM


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