[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
Solved

# Pivot Table total to sum over #N/A values

Posted on 2011-09-14
Medium Priority
406 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
Question by:rav_rav
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
3 Comments

LVL 93

Accepted Solution

Patrick Matthews earned 1000 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

Glenn Ray earned 1000 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

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

## Featured Post

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,…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month12 days, 23 hours left to enroll

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

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