Worksheet and Pivot Table

K

KO

I have a worksheet that draws info from a pivot table which has info for
salesmen. I had to add a new salesman and now all the info on the worksheet
is not getting the correct info because inserting a new salesman made all the
data move down a few lines. How can I get the correct info without retyping
new formulas with the new rows I need to reference?(I.E., instead of AC164
now I need AC 169)Below is a formula from my spreadsheet: Thanks for any help!

=IF(Database!$C$2="PRIOR YEAR",'Calc
File'!$AC$8,IF(Database!$C$2="DECEMBER",'Calc
File'!$AC$164,IF(Database!$C$2="JANUARY",'Calc
File'!$AC$320,IF(Database!$C$2="FEBRUARY",'Calc
File'!$AC$476,IF(Database!$C$2="MARCH",'Calc
File'!$AC$632,IF(Database!$C$2="APRIL",'Calc
File'!$AC$788,IF(Database!$C$2="MAY",'Calc
File'!$AC$944,IF(Database!$C$2="JUNE",'Calc File'!$AC$1100,0))))))))
 
H

HKaplan

You should use GETPIVOTDATA to extract data from a pivot table. Then
your issue should not occur.
 
D

Debra Dalgleish

Instead of complex formulas, you can use a GetPivotData formula to
extract the data that you need. There are examples in Excel's Help, and
here:

http://www.contextures.com/xlPivot06.html

In Excel 2002 and later versions, if you type an equal sign, then click
on a data cell in the pivot table, a GetPivotData formula will
automatically be created.
Then, you could modify that formula, replacing the text strings with
cell references. In your worksheet, the formula might refer to
"December", and you could replace that with $C$2.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top