Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Formulas in subtotal worksheets?

I have a long worksheet (34000+ rows) in which I have grouped data by a stock
number. In the column following the stock number is the name of the item to
which the stock number refers. When I subtotal the worksheet and go to level
two (subtotals only), the name disappears. It's easy enough to create a
formula to copy the item name from the row above the subtotal; but then, is
there an easy way to copy that formula to each of the subtotal rows (about
8000-10000) without having to paste to each cell individually? I tried
pasting to the entire column, but that causes the formula to be posted to the
hidden cells as well, and results in the same item name being in every cell
in the column.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formulas in subtotal worksheets?

Assuming you have something like this:

xxx name1 other data across
xxx name1
Subtotal for xxx
yyy name2
yyy name2
Subtotal for yyy

and you want name1 to appear in the cell next to "Subtotal for xxx",
and so on ...

Insert a new column C (temporarily). Click on the first cell where you
want the name to appear. Press F5 (or Edit | GoTo), then click Special
and then click Current Region. With the cells highlighed, press F5
again, click Special and then click Blanks. Now, type = in the cell
where the cursor is, click on the cell immediately above it and then
do CTRL-ENTER. The blank cells in column B will now all be filled with
the formula =(the cell above), so your names will appear how you
wanted them - you can fix the values in this column if you want.

Delete the temporary column C and then carry on as before.

Hope this helps.

Pete

On Jul 12, 11:16 pm, Prospector
wrote:
I have a long worksheet (34000+ rows) in which I have grouped data by a stock
number. In the column following the stock number is the name of the item to
which the stock number refers. When I subtotal the worksheet and go to level
two (subtotals only), the name disappears. It's easy enough to create a
formula to copy the item name from the row above the subtotal; but then, is
there an easy way to copy that formula to each of the subtotal rows (about
8000-10000) without having to paste to each cell individually? I tried
pasting to the entire column, but that causes the formula to be posted to the
hidden cells as well, and results in the same item name being in every cell
in the column.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Formulas in subtotal worksheets?

Thanks, Pete!!

"Pete_UK" wrote:

Assuming you have something like this:

xxx name1 other data across
xxx name1
Subtotal for xxx
yyy name2
yyy name2
Subtotal for yyy

and you want name1 to appear in the cell next to "Subtotal for xxx",
and so on ...

Insert a new column C (temporarily). Click on the first cell where you
want the name to appear. Press F5 (or Edit | GoTo), then click Special
and then click Current Region. With the cells highlighed, press F5
again, click Special and then click Blanks. Now, type = in the cell
where the cursor is, click on the cell immediately above it and then
do CTRL-ENTER. The blank cells in column B will now all be filled with
the formula =(the cell above), so your names will appear how you
wanted them - you can fix the values in this column if you want.

Delete the temporary column C and then carry on as before.

Hope this helps.

Pete

On Jul 12, 11:16 pm, Prospector
wrote:
I have a long worksheet (34000+ rows) in which I have grouped data by a stock
number. In the column following the stock number is the name of the item to
which the stock number refers. When I subtotal the worksheet and go to level
two (subtotals only), the name disappears. It's easy enough to create a
formula to copy the item name from the row above the subtotal; but then, is
there an easy way to copy that formula to each of the subtotal rows (about
8000-10000) without having to paste to each cell individually? I tried
pasting to the entire column, but that causes the formula to be posted to the
hidden cells as well, and results in the same item name being in every cell
in the column.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formulas in subtotal worksheets?

You're welcome - thanks for feeding back.

Pete

On Jul 13, 3:44 pm, Prospector
wrote:
Thanks, Pete!!



"Pete_UK" wrote:
Assuming you have something like this:


xxx name1 other data across
xxx name1
Subtotal for xxx
yyy name2
yyy name2
Subtotal for yyy


and you want name1 to appear in the cell next to "Subtotal for xxx",
and so on ...


Insert a new column C (temporarily). Click on the first cell where you
want the name to appear. Press F5 (or Edit | GoTo), then click Special
and then click Current Region. With the cells highlighed, press F5
again, click Special and then click Blanks. Now, type = in the cell
where the cursor is, click on the cell immediately above it and then
do CTRL-ENTER. The blank cells in column B will now all be filled with
the formula =(the cell above), so your names will appear how you
wanted them - you can fix the values in this column if you want.


Delete the temporary column C and then carry on as before.


Hope this helps.


Pete


On Jul 12, 11:16 pm, Prospector
wrote:
I have a long worksheet (34000+ rows) in which I have grouped data by a stock
number. In the column following the stock number is the name of the item to
which the stock number refers. When I subtotal the worksheet and go to level
two (subtotals only), the name disappears. It's easy enough to create a
formula to copy the item name from the row above the subtotal; but then, is
there an easy way to copy that formula to each of the subtotal rows (about
8000-10000) without having to paste to each cell individually? I tried
pasting to the entire column, but that causes the formula to be posted to the
hidden cells as well, and results in the same item name being in every cell
in the column. - Hide quoted text -


- Show quoted text -



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
vlookup and subtotal formulas not updating JTG Excel Worksheet Functions 2 March 12th 07 03:06 PM
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 formulas that chooses values mikeburg Excel Discussion (Misc queries) 2 January 24th 06 09:20 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 09:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"