Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Counting the number of unique values within a range

I would be most grateful if someone could offer me some help.

I need to count the number of unique values within a column range. Each
value consists of a series of alpha and numberical characters.

I have used the formula below but it keeps crashing my spreadsheet:

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

Any help or advice would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Counting the number of unique values within a range

Not sure why it would crash, but you do have an extra ) at the end. It worked
fine for me...

"SiH23" wrote:

I would be most grateful if someone could offer me some help.

I need to count the number of unique values within a column range. Each
value consists of a series of alpha and numberical characters.

I have used the formula below but it keeps crashing my spreadsheet:

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

Any help or advice would be greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Counting the number of unique values within a range

There is nothing wrong with the formula - it worked on my worksheet
Save you file, reopen and try again
It this fails I suspect a corrupt file
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"SiH23" wrote in message
...
I would be most grateful if someone could offer me some help.

I need to count the number of unique values within a column range. Each
value consists of a series of alpha and numberical characters.

I have used the formula below but it keeps crashing my spreadsheet:

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

Any help or advice would be greatly appreciated.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Counting the number of unique values within a range

Many thanks for all your help - I forgot to say that some of the cells within
the column are blank. Do I need to alter the formula in anyway? I suspect
this maybe why I am having problems.

"Bernard Liengme" wrote:

There is nothing wrong with the formula - it worked on my worksheet
Save you file, reopen and try again
It this fails I suspect a corrupt file
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"SiH23" wrote in message
...
I would be most grateful if someone could offer me some help.

I need to count the number of unique values within a column range. Each
value consists of a series of alpha and numberical characters.

I have used the formula below but it keeps crashing my spreadsheet:

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

Any help or advice would be greatly appreciated.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Counting the number of unique values within a range

Many thanks for all your help - I forgot to say that some of the cells within
the column are blank. Do I need to alter the formula in anyway? I suspect
this maybe why I am having problems.

"Sean Timmons" wrote:

Not sure why it would crash, but you do have an extra ) at the end. It worked
fine for me...

"SiH23" wrote:

I would be most grateful if someone could offer me some help.

I need to count the number of unique values within a column range. Each
value consists of a series of alpha and numberical characters.

I have used the formula below but it keeps crashing my spreadsheet:

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

Any help or advice would be greatly appreciated.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Counting the number of unique values within a range

Try it like this:

=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))

About you file crashing...

That formula is very calculation intensive. If your real range is "large"
(1000 rows) it will be slow to calculate. If your range is really just 5
rows then you should have no problem.

--
Biff
Microsoft Excel MVP


"SiH23" wrote in message
...
Many thanks for all your help - I forgot to say that some of the cells
within
the column are blank. Do I need to alter the formula in anyway? I suspect
this maybe why I am having problems.

"Bernard Liengme" wrote:

There is nothing wrong with the formula - it worked on my worksheet
Save you file, reopen and try again
It this fails I suspect a corrupt file
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"SiH23" wrote in message
...
I would be most grateful if someone could offer me some help.

I need to count the number of unique values within a column range. Each
value consists of a series of alpha and numberical characters.

I have used the formula below but it keeps crashing my spreadsheet:

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

Any help or advice would be greatly appreciated.






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 unique values in a row BASCRUMMY New Users to Excel 8 August 12th 08 06:29 PM
Counting Unique Values by Date Range [email protected] Excel Worksheet Functions 5 August 2nd 07 09:36 PM
Counting Unique Values Paul Ferro Excel Discussion (Misc queries) 1 April 11th 07 06:12 AM
Counting unique text/number cells from a range sudeepd12 Excel Discussion (Misc queries) 3 June 15th 05 07:58 PM
Counting unique text/number cells from a range sudeepd12 Excel Worksheet Functions 2 June 14th 05 11:21 PM


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