Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default How many different numbers in an array

I'm trying to determine how many different numbers (disregarding duplicates)
are in an array of numbers (a1.a400). Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 638
Default How many different numbers in an array

Ctrl+Shift+Enter
=SUM(IF(FREQUENCY(A1:A400, A1:A400)0,1))
Rossta wrote:
I'm trying to determine how many different numbers (disregarding duplicates)
are in an array of numbers (a1.a400). Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How many different numbers in an array

Try this:

=COUNT(1/FREQUENCY(A1:A400,A1:A400))

--
Biff
Microsoft Excel MVP


"Rossta" wrote in message
...
I'm trying to determine how many different numbers (disregarding
duplicates)
are in an array of numbers (a1.a400). Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 320
Default How many different numbers in an array

OR:
Ctrl+shift+enter
=SUM(1/COUNTIF(A1:A400,A1:A400))

"Rossta" wrote:

I'm trying to determine how many different numbers (disregarding duplicates)
are in an array of numbers (a1.a400). Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default How many different numbers in an array

It will fail if there are blank cells in the array, you could amend it like

=SUM(IF(A1:A400<"",1/COUNTIF(A1:A400,A1:A400)))

but then it is less efficient that the other 2 formulas in this thread


--


Regards,


Peo Sjoblom


"Bob Umlas, Excel MVP" wrote in
message ...
OR:
Ctrl+shift+enter
=SUM(1/COUNTIF(A1:A400,A1:A400))

"Rossta" wrote:

I'm trying to determine how many different numbers (disregarding
duplicates)
are in an array of numbers (a1.a400). Thanks.



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 do I sum the lowest n numbers in an array with n variable? remahte Excel Discussion (Misc queries) 1 March 29th 07 01:23 AM
Find numbers in an array that sum to a certain number tommydancer Excel Worksheet Functions 3 September 9th 06 03:11 PM
Transpose and order array numbers cradino Excel Worksheet Functions 2 October 1st 05 06:27 PM
average of kth largest numbers in an array of n numbers georgeb Excel Worksheet Functions 6 September 5th 05 05:57 AM
subtract all numbers in an array Daniel Excel Worksheet Functions 1 February 14th 05 02:34 PM


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