LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

The number of fields should be the same, whether you use a calculated
field, or fields from the source data.

If you can use programming in the workbook, you could add a cell named
LaborRate, and allow users to type a rate there.
Then add the following code to the pivot table's sheet module:

'=======================
Private Sub Worksheet_Change(ByVal Target As Range)
Dim ws As Worksheet
Set ws = ActiveSheet
If Target.Address = ws.Range("LaborRate").Address Then
ws.PivotTables(1).CalculatedFields("3q05 labor $"). _
StandardFormula = "='3q05 Labor Hrs'*" _
& ws.Range("LaborRate").Value
End If
End Sub
'======================

Linda wrote:
Hi Debra,
Thank you for your response, I originally had the $75 hard coded in the
formula but the request was to make it dynamic so anyone could enter any
dollar value & refresh the pivot to see the results. I could place the
calculation in the source data worksheet but the file & existing pivot are
pretty large. I would have to add (to the pivot table) 8 additional fields (8
quarter forecast) to an existing 16 calculated fields. I'm concerned that
the table will be too big and will not calculate. So I tried to change the
formular to ="=3q05 labor Hrs*(average(labor rate))" but I had no luck with
it. Do you think some kind of "IF" statement might work...



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

 
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
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
Using a MIN, MAX formula on a calculated field in a pivot table fhaberland Excel Discussion (Misc queries) 0 August 2nd 05 07:47 PM
Calculated field in pivot table Dan Excel Discussion (Misc queries) 1 April 19th 05 11:06 PM
pivot table - hide details but show subtotal for calculated field tenneym Excel Discussion (Misc queries) 1 February 9th 05 03:07 AM
How to create a calculated field formula based on Pivot Table resu dha17 Excel Discussion (Misc queries) 1 December 15th 04 05:39 AM


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