Solved

how to deal with getpivotdata returing #ref!

Posted on 2011-03-25
4
328 Views
Last Modified: 2012-06-22
I have a pivot that shows data over time and includes historical data. A table that references that pivot shows the data for each month in the year, so, when the current year is selected, some cell have a #ref! because that month hasn't occurred yet and there's no data in the pivot, or, historically we don't have all the data for a previous year.

We need to be compatible with 2003, so, iserror is out and we also need to chart and do formulas based on the table (that get it's data from the pivot).

I also would like it so that if I sum 3 months (for a quarter) that all have no data, the result would be blank and not 0.

I did try =if(isref(getpivotdata(xxx), getpivotdata(xxx),"")
but, summing 3 cells like that, that are "", returns 0 and I'd rather have the result be blank, and, that formula seems rather long.

thanks
alan
0
Comment
Question by:avoorheis
  • 2
4 Comments
 
LVL 1

Expert Comment

by:TonyWong
Comment Utility
Depending on what version of Excel you're using, you can go into the OPtions and Advanced then uncheck 'Show zero in cells that have a zero value' (Excel 2010).

As for the other part  in your question, hope someone else can give you a solution.

Cheers,
Tony
0
 

Author Comment

by:avoorheis
Comment Utility
using excel 2007, but, must be compatible with 2003
0
 
LVL 31

Accepted Solution

by:
Rob Henson earned 300 total points
Comment Utility
You can use iserror in 2003 so this would work:

IF(ISERROR(GETPIVOTDATA(###)),0,GETPIVOTDATA(###))

Cheers
Rob H
0
 
LVL 1

Assisted Solution

by:TonyWong
TonyWong earned 200 total points
Comment Utility
here's a wee link:

http://office.microsoft.com/en-us/excel-help/hide-error-values-and-error-indicators-in-cells-HP003056121.aspx#BMformat_text_in_cells_that_contain_err

It's for Excel 2003 so you should be able to do any of the methods listed in this article.

Cheers,
Tony
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now