Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sparky Mark
 
Posts: n/a
Default counting unique strings

I'm having trouble with a formula that will allow me to count the number of
unique strings in a range, however it needs to disregard any blanks in that
range. In the range g4:g1000, there are only a dozen or so values, but I'm
steadily entering the data.

In the MS Knowledgebase (article 268001), it gives this formula.

=SUM(IF(FREQUENCY(IF(LEN(G4:G1000)0,MATCH(G4:G100 0,G4:G1000,0),""),
IF(LEN(G4:G1000)0,MATCH(G4:G1000,G4:G1000,0),"")) 0,1))

However, all that's coming up is "#VALUE!". Why does this not work?

--
Sparky Mark
http://www.moglesby.karoo.net
~~~~~~~~~~~~~~~~~~~~~~~~


  #2   Report Post  
Max
 
Posts: n/a
Default

Think its an array formula which needs to be array-entered,
viz.: press CTRL+SHIFT+ENTER, instead of just pressing ENTER

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Sparky Mark" wrote in message
...
I'm having trouble with a formula that will allow me to count the number

of
unique strings in a range, however it needs to disregard any blanks in

that
range. In the range g4:g1000, there are only a dozen or so values, but

I'm
steadily entering the data.

In the MS Knowledgebase (article 268001), it gives this formula.

=SUM(IF(FREQUENCY(IF(LEN(G4:G1000)0,MATCH(G4:G100 0,G4:G1000,0),""),
IF(LEN(G4:G1000)0,MATCH(G4:G1000,G4:G1000,0),"")) 0,1))

However, all that's coming up is "#VALUE!". Why does this not work?

--
Sparky Mark
http://www.moglesby.karoo.net
~~~~~~~~~~~~~~~~~~~~~~~~




  #3   Report Post  
Sparky Mark
 
Posts: n/a
Default


"Max" wrote in message
...
Think its an array formula which needs to be array-entered,
viz.: press CTRL+SHIFT+ENTER, instead of just pressing ENTER


Excellent, nice one, cheers for that.

--
Sparky Mark
http://www.moglesby.karoo.net
~~~~~~~~~~~~~~~~~~~~~~~~


  #4   Report Post  
Max
 
Posts: n/a
Default

"Sparky Mark" wrote
Excellent, nice one, cheers for that.


You're welcome, Sparky !
Thanks for feedback
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


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 Rainfall Data TightIsobars Excel Discussion (Misc queries) 2 January 17th 05 11:45 PM
Searching for Substrings Within Strings Tiziano Excel Discussion (Misc queries) 8 January 6th 05 03:09 AM
How can I find strings of wildcards in Excel? Nick M Excel Discussion (Misc queries) 2 December 20th 04 05:59 PM
How do I get unique values from 2 columns? akmccarthy Excel Discussion (Misc queries) 2 December 13th 04 10:47 PM
compare unique identifiers in multiple ranges bawilli_91125 Charts and Charting in Excel 1 November 30th 04 06:34 PM


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