Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2016, 12:15 PM
jfeinstein jfeinstein is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows 7 32bit using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2010 32bit
Novice
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant
 
Join Date: Dec 2016
Posts: 5
jfeinstein is on a distinguished road
Default using 'fill right' to copy formulas in a pivot table, keeping some data elements constant

how do I build a formula in a pivot table such that when I 'fill right' it will adjust appropriately for each column. NOTE: I have two levels of values in the row headings. The formula I am using is:



=(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",30)*$A$6)+(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",45)*$A$7)+(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",60)*$A$8)+(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",75)*$A$9)+(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",90)*$A$10)+(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",180)*$A$12)+(GETPIVOTDATA("Count of Clinicians",$A$3,"MONTH","Feb","DURATION (minutes)",960)*$A$13)


My pivot table looks like this:

Feb
Duration Count of Clinicians Count of PCPs Count of MAs
30
45 1 1 1
60
75 1
90 1
180
960

135 135
Hours by Title 2.25
Reply With Quote
  #2  
Old 12-20-2016, 10:23 AM
jfeinstein jfeinstein is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows 7 32bit using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2010 32bit
Novice
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant
 
Join Date: Dec 2016
Posts: 5
jfeinstein is on a distinguished road
Default

I hate to grovel, but I'm truly stuck here and could really use some insights. If this is something that should go in a more advanced Forum, I'm happy to do that. I just don't know where to find such a Forum.

many thanks,

Jo Lynn
Reply With Quote
  #3  
Old 12-20-2016, 10:46 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows 7 64bit using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,777
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Perhaps post a sample sheet ( click Go advanced - Manage attachments) showing what you have, expected results and what goes wrong.
The kind of lengthy formula you posted is hard to grasp
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 12-20-2016, 11:23 AM
jfeinstein jfeinstein is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows 7 32bit using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2010 32bit
Novice
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant
 
Join Date: Dec 2016
Posts: 5
jfeinstein is on a distinguished road
Default attachment

Please find the attached raw data and pivot table. I built a formula in cell B14 on the Hours by Title sheet. I want to use 'fill right' to apply the same formula across row 14. However, when I do, it continues to use 'count of clinicians' (or column B) in the formula instead of automatically using the next column over. This results in incorrectly showing the same result from B14, even if the values in column C or D should be generating a different result.
Attached Files
File Type: xlsx For MS Forums.xlsx (33.1 KB, 8 views)
Reply With Quote
  #5  
Old 12-20-2016, 06:54 PM
Tuph Tuph is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows XP using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2016
Advanced Beginner
 
Join Date: Dec 2014
Location: Melbourne, Australia
Posts: 31
Tuph is on a distinguished road
Default

The pivot table is calculating correctly. Data can be found in every cell in row 27 so the pivot table is showing 1 for every heading. I have highlighted the row of data in the attached copy of your workbook.
Attached Files
File Type: xlsx copy of For MS Forums.xlsx (32.6 KB, 13 views)
Reply With Quote
  #6  
Old 12-21-2016, 09:20 AM
jfeinstein jfeinstein is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows 7 32bit using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2010 32bit
Novice
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant
 
Join Date: Dec 2016
Posts: 5
jfeinstein is on a distinguished road
Default

Thanks for your reply. The row that is not calculating correctly is row 14 in the sheet Hours by Title Q1. In column C, for example, it should no longer use the data in cells B6-B12 (multiplied by the values in A6-A12), but should instead be using values in C6-C12, multiplied by the values in A6-A12.
Reply With Quote
  #7  
Old 01-16-2017, 07:00 PM
jfeinstein jfeinstein is offline using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Windows 7 32bit using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Office 2010 32bit
Novice
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant
 
Join Date: Dec 2016
Posts: 5
jfeinstein is on a distinguished road
Default

Does anyone have a solution that I am missing? Please see last post. The row that is not calculating correctly is row 14 in the sheet Hours by Title Q1. In column C, for example, it should no longer use the data in cells B6-B12 (multiplied by the values in A6-A12), but should instead be using values in C6-C12, multiplied by the values in A6-A12.
Reply With Quote
Reply

Tags
formulas, pivot tables



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table - Copy Rows theexpat Excel Programming 0 02-26-2016 08:14 AM
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Data not showing in Pivot Table MichelPierre Excel 2 01-26-2016 10:51 AM
Pivot Table Duplicate Data cnw Excel 0 08-31-2012 08:24 AM
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Keeping the top row constant in Excel MSmand Excel 2 07-13-2011 01:14 PM
using 'fill right' to copy formulas in a pivot table, keeping some data elements constant Using subtotals in Pivot table formulas ninfanger Excel 3 10-23-2010 12:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft