Solved

Pivot Table total to sum over #N/A values

Posted on 2011-09-14
3
283 Views
Last Modified: 2012-05-12
Hi Experts,

I have a pivot table that has balances in it.  The source data has some balances that have #N/A values due to a VLOOKUP.

WIthout modifying the source data, how would I go about modifying the total displayed in the Pivot Table so that it sums everything in a column except for the #N/A values?

Thanks,
rav
0
Comment
Question by:rav_rav
3 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 250 total points
ID: 36538910
Modifyv your vlookup so that it returns 0 instead of #n/a:

=if(isna(vlookup(...)),0,vlookup(...))
0
 
LVL 27

Assisted Solution

by:Glenn Ray
Glenn Ray earned 250 total points
ID: 36539473
Create a calculated field in your Pivot Table that checks for #N/A and returns an alternate result.

For example, if the field name in question is "Sales" then create a calculated field called "Sales Value" with the formula:
=if(isna(Sales),0,Sales)

Instead of zero ("0") as the return value above, you should also be able to return "N/A" (text) and still have the values calculated properly in the pivot table.
0
 

Author Closing Comment

by:rav_rav
ID: 36577131
Sorry for the delayed response folks.
Thanks for your help.
rav
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

808 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