counting diffeneces in range

  • Thread starter Thread starter mallets123
  • Start date Start date
M

mallets123

Is there a function which will count in a range of cells (text, i.e.
state abbreviations) each time a new state abbreviation occurs?

Thanks for any help with this, going crazy here...
 
Some options...

[A]

=SUMPRODUCT((Range<>"")/COUNTIF(Range,Range&""))



=SUM(IF(Range<>"",1/(COUNTIF(Range,Range)))

which must be confirmed with control+shift+enter.

[C]

=COUNTDIFF(Range,,"")

which requires Longre's morefunc.xll add-in.
Is there a function which will count in a range of cells (text, i.e.
state abbreviations) each time a new state abbreviation occurs?

Thanks for any help with this, going crazy here...

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
 
Thanks for all of your help, I've got it to work like I want it, howeve
I now need it to list these state abbreviations that are different in
series of cells.

Basically my example is I have a groups that are traveling to differen
states. I've got excel counting how many different states were visited
Now I need excel to list them in a series of cells so I can count th
total number of different states visited between several groups
Whoah....

I'm using

=SUM(IF(FREQUENCY(IF(LEN(F5:F8)>0,MATCH(F5:F8,F5:F8,0),""),IF(LEN(F5:F8)>0,MATCH(F5:F8,F5:F8,0),""))>0,1))

this counts the different states incountered.

If two groups are traveling in different time frames but I need to kee
a cumulative total of different states visited, isn't it correct to lis
the states seperately somewhere where excel can count the total of bot
groups?

Please help..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top