#1   Report Post  
Posted to microsoft.public.excel.misc
KG KG is offline
external usenet poster
 
Posts: 33
Default Copying subtotals

I have sorted a data base and created Subtotals, using DataSubtotals. Then I
collapsed the data so that only the subtotals are visible.

Now I want to create a Lookup table in a different worksheet, displaying
exclusively the Subtotals; I copied the first line of Subtotals from the data
base but, obviously, I cannot drag the formula down because of the hidden
rows in the data table. Is there a way (VBA or otherwise) to copy the
subtotals ONLY into a continuous table, other than the old reliable
point-and-click?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Copying subtotals

So you want to copy the visible cells only... Highlight the area you are
looking to copy and Hit F5 (or Ctrl + G or edit - GoTo) and then select
Special Cells - Visible Cells Only. Copy the cells and paste them to the new
sheet...

If you want to you could also change your SubTotals to Pivot Tables.
Generally they are a lot more efficient and flexible. Remove the subtotals
and then select Data - Pivot Table - Finish (when the wizard comes up).
Drag the fields onto the table and you are good to go...
--
HTH...

Jim Thomlinson


"KG" wrote:

I have sorted a data base and created Subtotals, using DataSubtotals. Then I
collapsed the data so that only the subtotals are visible.

Now I want to create a Lookup table in a different worksheet, displaying
exclusively the Subtotals; I copied the first line of Subtotals from the data
base but, obviously, I cannot drag the formula down because of the hidden
rows in the data table. Is there a way (VBA or otherwise) to copy the
subtotals ONLY into a continuous table, other than the old reliable
point-and-click?

  #3   Report Post  
Posted to microsoft.public.excel.misc
KG KG is offline
external usenet poster
 
Posts: 33
Default Copying subtotals

It should work as long as the cells remain linked to the subtotals. In
retrospect, I don't think that I explained adequately that the data base is
dynamic and that the "pasted" cells (which are going to become part of a
vlookup table) also need to update themselves with every workbook edit.

"Jim Thomlinson" wrote:

So you want to copy the visible cells only... Highlight the area you are
looking to copy and Hit F5 (or Ctrl + G or edit - GoTo) and then select
Special Cells - Visible Cells Only. Copy the cells and paste them to the new
sheet...

If you want to you could also change your SubTotals to Pivot Tables.
Generally they are a lot more efficient and flexible. Remove the subtotals
and then select Data - Pivot Table - Finish (when the wizard comes up).
Drag the fields onto the table and you are good to go...
--
HTH...

Jim Thomlinson


"KG" wrote:

I have sorted a data base and created Subtotals, using DataSubtotals. Then I
collapsed the data so that only the subtotals are visible.

Now I want to create a Lookup table in a different worksheet, displaying
exclusively the Subtotals; I copied the first line of Subtotals from the data
base but, obviously, I cannot drag the formula down because of the hidden
rows in the data table. Is there a way (VBA or otherwise) to copy the
subtotals ONLY into a continuous table, other than the old reliable
point-and-click?

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 copy subtotals from excel without it also copying the det slh Excel Discussion (Misc queries) 2 February 28th 07 11:22 PM
Excel, how copy subtotals without copying all lines inbetween? confounded Excel Discussion (Misc queries) 1 December 13th 05 05:55 PM
subtotals copying Dave o Excel Discussion (Misc queries) 3 August 4th 05 08:19 PM
copying subtotals in Pivot tables Tab Excel Worksheet Functions 3 June 23rd 05 09:11 PM
Copying subtotals in Excel 2000 pearsall Excel Discussion (Misc queries) 3 April 21st 05 01:05 PM


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