Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Inputing data into Pivot Table

Tim,

Just want to confirm the steps again....
1) remove all subtotals from the current pivot
2) make a copy of the pivot and only paste values
3) fill in the blank rows of the pivot with the data from above (see
macro below or do it manually)
4) use the built in excel subtotal function (data-subtotal) to insert
the formulas.


If all the sub grouping totals are remove from the pivot table, after
copying and pasted value into another worksheet, I will need to insert blank
rows back into the worksheet again for each sub group. Am I right?

Wouldn't that take up even more time, as I have many sub-grouping in the
pivot table?



"Tim879" wrote:

As far as replacing the formula... the easiest method would be to do
the following...

1) remove all subtotals from the current pivot
2) make a copy of the pivot and only paste values
3) fill in the blank rows of the pivot with the data from above (see
macro below or do it manually)
4) use the built in excel subtotal function (data-subtotal) to insert
the formulas.


Sub Fill_Empty()
Dim selected_range As Range
continue = MsgBox("This macro will fill empty cells with the value
from the cell above. Do you want to continue?", vbYesNo)

If continue = vbNo Then
Exit Sub
ElseIf continue = vbYes Then
Set selected_range = Selection
On Error GoTo Error_Found:

Dim oRng As Range
Set oRng = Selection

Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.FormulaR1C1 = "=R[-1]C"
oRng.Copy
oRng.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False

selected_range.Select
Application.CutCopyMode = False ' exit copy / paste mode

Exit Sub

End If


Error_Found:
MsgBox "Error: Either there are no blank cells in the range you
selected to fill " & _
"or there is no value in the cell above to fill down.
Please highlight a " & _
"range with blank cells and ensure there is data in the
first row of your " & _
"selection and try again.", vbInformation

End Sub



On Jul 11, 12:35 pm, YMTEO wrote:
Currently I am in the process of doing up a Qtr 3 forecast template for the
sales man.

I use pivot table to churn out the results of the past months and the to go
months into a nice table.

Before I pass the pivot table to the salesman for their input, I need to
convert the pivot table into a static table and change all the sub total with
@sum formulars.

As the "static" pivot table has many sub total, inserting the sub total
formulars for each product groups are very tedious, not to say I have about
200+ sub products and 10 different tables.

Wondering is there a faster way to carry out this task?
It would be great if
1) I can add or change information within a Pivot table and have it stay
within the table and left the data source unchange?
2) A quick way to replace the pivot table sub total into @sum formular so
that when the figures within the "static" pivot table is changed, the sub
total will change accordingly too?

Can someone advise and help?



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
inputing survey data LadyZ Excel Discussion (Misc queries) 2 March 20th 08 03:52 AM
Inputing and sorting Roster data Braheem Excel Discussion (Misc queries) 2 September 14th 06 05:31 PM
inputing data using vba [email protected] Excel Discussion (Misc queries) 0 January 10th 06 04:09 AM
inputing data using vba [email protected] Excel Discussion (Misc queries) 0 January 2nd 06 12:56 AM
inputing data [email protected] Excel Discussion (Misc queries) 0 December 28th 05 02:01 PM


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