Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum of unique values within a range with blank cells

Hi, how can I sum unique values within a range where some cells are
blank?
An example:
A
1 100
2 150
3
4 150
5 50
6
7 100
8 100
9 50
10 SUM = 300 (100 + 150 + 50)

Thanx for any suggestion.

look
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sum of unique values within a range with blank cells

=SUMPRODUCT(1/COUNTIF(A1:A10,A1:A10&""),A1:A10)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"loook" wrote in message
...
Hi, how can I sum unique values within a range where some cells are
blank?
An example:
A
1 100
2 150
3
4 150
5 50
6
7 100
8 100
9 50
10 SUM = 300 (100 + 150 + 50)

Thanx for any suggestion.

look



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Sum of unique values within a range with blank cells

In B1 enter:
=IF(COUNTIF($A$1:A1,A1)=1,A1,"") and copy down
In another cell:
=SUM(B:B)
--
Gary''s Student - gsnu200785


"loook" wrote:

Hi, how can I sum unique values within a range where some cells are
blank?
An example:
A
1 100
2 150
3
4 150
5 50
6
7 100
8 100
9 50
10 SUM = 300 (100 + 150 + 50)

Thanx for any suggestion.

look

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sum of unique values within a range with blank cells

=SUM(INDEX(1/COUNTIF(A1:A9,A1:A9&"")*A1:A9,0))


"loook" wrote:

Hi, how can I sum unique values within a range where some cells are
blank?
An example:
A
1 100
2 150
3
4 150
5 50
6
7 100
8 100
9 50
10 SUM = 300 (100 + 150 + 50)

Thanx for any suggestion.

look

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
If certain cells not blank, and cells in range are, set values to ktoth04 Excel Discussion (Misc queries) 0 February 21st 08 09:01 PM
Counting Unique Values by Date Range [email protected] Excel Worksheet Functions 5 August 2nd 07 09:36 PM
Unique values from date range tqm1 Excel Discussion (Misc queries) 1 June 28th 07 08:04 AM
How do I count unique values within a date range? Sam Excel Discussion (Misc queries) 5 June 22nd 07 06:15 AM
How do I get the unique values from a range? DaveO Excel Worksheet Functions 13 January 13th 06 12:55 AM


All times are GMT +1. The time now is 09:31 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"