#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count unique numbers

Would I be better off to use Access in this cases.

I would say yes in this case.

--
Biff
Microsoft Excel MVP


"markmcd" wrote in message
...
Yes that's right 300k rows. It does take forever. During this time I do
get
Excel not responding but have found if I leave it go rather than killing
it,
it eventually comes good and you can carry on.

By August YTD it is 300k rows and my concern as the year goes on is just
how
big will this be by the end of December. I'm thinking I could be better
off
using MS Access but don't know the program that well. Would I be better
off
to use Access in this cases. (Microsoft Office 2007 in use)

"T. Valko" wrote:

ie my spreadsheet has over 300,000 lines
COUNTIF(A$2:A2,A2)


Using an ever progressing range formula like that on 300k rows might be a
killer!

By the time you get to the last row you've referenced 45,000,150,000
cells!

=SUMPRODUCT(ROW(1:300000))

1+2+3+4+5+6+7.....+300000

Plus, you're doing it twice:

IF(COUNTIF(A$2:A2,A2)1,"",COUNTIF(A$2:A2,A2)))

A generic formula to count unique numbers:

=COUNT(1/FREQUENCY(range,range))

This will also be a killer on 300k rows. For "just" 100,000 rows it
caused
my version of Excel 2007 to lock-up ("not respond").

--
Biff
Microsoft Excel MVP


"Max" wrote in message
...
On the face of it, the earlier formula for col B (Uniq) should remain
unaffected by any sorting done (on the table) in other cols - that's
the
key
issue you raised. The Trip col's uniqueness is a presumption, taken as
you
had stated in your original post. You might need to re-examine whether
your
concat idea/formula is sufficient to render this field unique.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:18,100 Files:360 Subscribers:56
xdemechanik
---
"markmcd" wrote:
Thanks Max.....if I do a sort say by product or by rate as an example
(other
fields in the table), won't this cause havoc with the trip count. The
column
I imagine then should have contigious data in the trip column whether
newly
created or otherwise.

Once again thanks for your assistance.

Cheers Mark.






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
VLOOKUPS to Count Unique numbers Greg Excel Discussion (Misc queries) 1 February 14th 08 07:55 PM
Count unique numbers Stilin Excel Worksheet Functions 2 September 19th 07 12:04 PM
Count Unique Numbers Averitt Engineer Excel Worksheet Functions 6 February 14th 07 09:26 PM
Count unique numbers for execs DanielJW Excel Discussion (Misc queries) 2 November 29th 05 10:47 AM
summary count of unique numbers Dave Edge Excel Discussion (Misc queries) 5 November 12th 05 12:06 AM


All times are GMT +1. The time now is 02:41 PM.

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"