Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Counting unique numbers

Thank you so much Ron and Biff, both solutions work pretty well.
Nevertheless I'm encountering one more difficulty, my data set is
really large (+400,000 rows) so pasting down any of these formulas is
not practical because as I paste them down, they stay fixed to the
first cell of the range. However, I know that the data is ordered, and
that in any case, if I were able to look just 100 rows forward and 100
rows ahead, that would be enough. I've been trying to fix both
formulas with ADDRESS() in such a way that I could vary the initial
and ending rows in such way, but I haven't been able to do so
effectively. Any thoughts? Thank you again.

JM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting unique numbers

my data set is really large (+400,000 rows)

Yeah, that could slow things down when you're counting uniques on that size
range!

I know that the data is ordered


Despite the length of this formula it's much better! It narrows down the
range to only those cells that are of the same ID.

Array entered**

=SUM(IF(FREQUENCY(IF(INDEX(A:A,MATCH(D2,A:A,0)):IN DEX(A:A,MATCH(D2,A:A,0)+COUNTIF(A:A,D2)-1)=D2,INDEX(B:B,MATCH(D2,A:A,0)):INDEX(B:B,MATCH(D 2,A:A,0)+COUNTIF(A:A,D2)-1)),INDEX(B:B,MATCH(D2,A:A,0)):INDEX(B:B,MATCH(D2, A:A,0)+COUNTIF(A:A,D2)-1)),1))

If you can download and install the free Morefunc add-in from:

http://xcell05.free.fr/morefunc/english/index.htm

Alternate download site:

http://www.download.com/Morefunc/300...-10423159.html

Then you can use this slightly shorter array entered** version:

=SUM(IF(FREQUENCY(IF(INDEX(A:A,MATCH(D2,A:A,0)):IN DEX(A:A,MATCH(D2,A:A,0)+COUNTIF(A:A,D2)-1)=D2,SETV(INDEX(B:B,MATCH(D2,A:A,0)):INDEX(B:B,MA TCH(D2,A:A,0)+COUNTIF(A:A,D2)-1))),GETV()),1))** array formulas need to be entered using the key combination ofCTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFTkey then hit ENTER.--BiffMicrosoft Excel MVP"Juan Marin" wrote in ... Thank you so much Ron and Biff, both solutions work pretty well. Nevertheless I'm encountering one more difficulty, my data set is really large (+400,000 rows) so pasting down any of these formulas is not practical because as I paste them down, they stay fixed to the first cell of the range. However, I know that the data is ordered, and that in any case, if I were able to look just 100 rows forward and 100 rows ahead, that would be enough. I've been trying to fix both formulas with ADDRESS() in such a way that I could vary the initial and ending rows in such way, but I haven't been able to do so effectively. Any thoughts? Thank you again. JM

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
counting and unique kr Excel Discussion (Misc queries) 0 January 29th 09 01:54 AM
Counting Unique tonyalt3 Excel Worksheet Functions 1 April 16th 08 11:32 PM
Unique counting Michael Excel Discussion (Misc queries) 19 November 27th 06 09:28 AM
Counting Unique Part Numbers In A Range BigH Excel Worksheet Functions 2 December 9th 05 07:09 PM
counting unique numbers in filtered data deb Excel Worksheet Functions 1 September 22nd 05 09:41 PM


All times are GMT +1. The time now is 07:16 AM.

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

About Us

"It's about Microsoft Excel"