Solved

Excel-Pivot Tables

Posted on 2011-03-18
3
359 Views
Last Modified: 2012-05-11
I am running Pivot table in Excel.  The spreadsheet contains branch locations and account numbers.  There are rows where the account numbers are duplicated numerous times on the spreadsheet.  

When I run the pivot table to obtain a count of the account numbers, the duplicate account numbers are double counting.  If the acount numbers are listed multiple times, I want it to be counted only once.

Is there a way to do this in excel with a pivot table?
0
Comment
Question by:ArisaAnsar
3 Comments
 

Accepted Solution

by:
IT_Tech54 earned 250 total points
ID: 35169244
I don't think you can do it without adding a new column, but I would use an array formula like this: if the account numbers are in column A rows 1-50, use this formula-

=SUM(1/COUNTIF(A1:A50,A1:A50))
This is an array formula and must be validated with the combination of the 3
keys: Ctrl+Shift+Enter instead with the single key Enter.  i.e after you type the formula, press the key combination Ctrl+Shift+Enter.
0
 
LVL 39

Assisted Solution

by:nutsch
nutsch earned 250 total points
ID: 35169260
You will need to add a column to your database that will be 1 for each new account number and 0 for any duplicates.

assuming your account numbers are in column C and your data has headers in row 1 and data starting in row 2, something like this, in any column of row 2, then copy down.
=--(countif($C$2:$C2,$C2)=1)

Thomas
0
 

Author Closing Comment

by:ArisaAnsar
ID: 35325808
Thanks
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

707 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

15 Experts available now in Live!

Get 1:1 Help Now