Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Sum one column based on the unique value in another column

I have the following columns:

Account# - # of Account Holders - # per State
12345 - 3 - 2 in VA
12345 - 3 - 1 in MD
23456 - 1 - 1 in PA


In this example, I need to show that there are 2 Total Accounts with 4 total
account holders

I have used the following to show the total of unique account numbers:
=SUM(IF(FREQUENCY(MATCH(Data!D2:D91,Data!D2:D91,0) ,MATCH(Data!D2:D91,Data!D2:D91,0))0,1))

How do I SUM Column B based on unique values in Column A?

Thank you much!
Renee
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Sum one column based on the unique value in another column

I would be tempted to make a pivot table with Accounts in the Row area,
Holders in the Column area and Holders COUNTED in the data area.
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Renee" wrote in message
...
I have the following columns:

Account# - # of Account Holders - # per State
12345 - 3 - 2 in VA
12345 - 3 - 1 in MD
23456 - 1 - 1 in PA


In this example, I need to show that there are 2 Total Accounts with 4
total
account holders

I have used the following to show the total of unique account numbers:
=SUM(IF(FREQUENCY(MATCH(Data!D2:D91,Data!D2:D91,0) ,MATCH(Data!D2:D91,Data!D2:D91,0))0,1))

How do I SUM Column B based on unique values in Column A?

Thank you much!
Renee



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sum one column based on the unique value in another column

=SUMPRODUCT(1/COUNTIF(A2:A91,A2:A91&""),B2:B91)


"Renee" wrote:

I have the following columns:

Account# - # of Account Holders - # per State
12345 - 3 - 2 in VA
12345 - 3 - 1 in MD
23456 - 1 - 1 in PA


In this example, I need to show that there are 2 Total Accounts with 4 total
account holders

I have used the following to show the total of unique account numbers:
=SUM(IF(FREQUENCY(MATCH(Data!D2:D91,Data!D2:D91,0) ,MATCH(Data!D2:D91,Data!D2:D91,0))0,1))

How do I SUM Column B based on unique values in Column A?

Thank you much!
Renee

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy rows of one sheet into mutiple sheets based on column value Wesley Breshears Excel Discussion (Misc queries) 0 October 18th 06 03:19 PM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM


All times are GMT +1. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"