Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Excel-Pivot Tables

Posted on 2011-03-18
Medium Priority
388 Views
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
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

Accepted Solution

IT_Tech54 earned 750 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

nutsch earned 750 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

ID: 35325808
Thanks
0

## Featured Post

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
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…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
###### Suggested Courses
Course of the Month9 days, 9 hours left to enroll