#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default sumif?

I have two columns

one has "id" and column 2 has amount

a 5
b 10
c 15
a 5
c 15

All id has same amount.
what I want is total of all unique id's
i.e. 30 in this case

The number of rows/ records can go up and down.
any takers?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default sumif?

Try this:

With
your posted example in A1:B5

C1: =SUMPRODUCT(1/COUNTIF(A1:A5,A1:A5)*B1:B5)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"flow23" wrote:

I have two columns

one has "id" and column 2 has amount

a 5
b 10
c 15
a 5
c 15

All id has same amount.
what I want is total of all unique id's
i.e. 30 in this case

The number of rows/ records can go up and down.
any takers?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default sumif?

Yes it works except that the range changes.i.e., the number of row varies.


"Ron Coderre" wrote:

Try this:

With
your posted example in A1:B5

C1: =SUMPRODUCT(1/COUNTIF(A1:A5,A1:A5)*B1:B5)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"flow23" wrote:

I have two columns

one has "id" and column 2 has amount

a 5
b 10
c 15
a 5
c 15

All id has same amount.
what I want is total of all unique id's
i.e. 30 in this case

The number of rows/ records can go up and down.
any takers?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default sumif?

If the number of rows in the range varies, then maybe Dynamic Named Ranges
are what you need. See Debra Dalgleish's website for instructions:

http://www.contextures.com/xlNames01.html#Dynamic
Post back with any questions.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"flow23" wrote:

Yes it works except that the range changes.i.e., the number of row varies.


"Ron Coderre" wrote:

Try this:

With
your posted example in A1:B5

C1: =SUMPRODUCT(1/COUNTIF(A1:A5,A1:A5)*B1:B5)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"flow23" wrote:

I have two columns

one has "id" and column 2 has amount

a 5
b 10
c 15
a 5
c 15

All id has same amount.
what I want is total of all unique id's
i.e. 30 in this case

The number of rows/ records can go up and down.
any takers?


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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
How to use SUMIF function with non-adjacent cells KLaw Excel Worksheet Functions 5 October 19th 06 10:15 AM
SUMIF function help PO Excel Worksheet Functions 1 June 1st 06 09:33 AM
Sumif of Sumif perhaps? Fred Excel Discussion (Misc queries) 2 March 29th 06 05:39 PM
SUMIF Ferg Excel Worksheet Functions 3 February 28th 06 03:37 AM


All times are GMT +1. The time now is 01:23 AM.

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"