Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel-Pivot Tables

Posted on 2011-03-18
3
Medium Priority
?
398 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 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

by:nutsch
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

by:ArisaAnsar
ID: 35325808
Thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

916 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