Solved

Excel-Pivot Tables

Posted on 2011-03-18
3
378 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
[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
 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

739 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