#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default NEED HELP!!!

How to count a character only once?

Ex. Row 1 Collumm A has character "AV" on Row 1 Collumm B has same character
"AV". How do I sum/count only AV once at the end of Row 1. My range is about
6 collumms.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default NEED HELP!!!

On Nov 14, 10:20 am, CHICANO216
wrote:
How to count a character only once?

Ex. Row 1 Collumm A has character "AV" on Row 1 Collumm B has same character
"AV". How do I sum/count only AV once at the end of Row 1. My range is about
6 collumms.


Found this by using google:

=SUM(IF(FREQUENCY(IF(LEN(A2:A10)0,MATCH(A2:A10,A2 :A10,0),""),
IF(LEN(A2:A10)0,MATCH(A2:A10,A2:A10,0),""))0,1))

http://office.microsoft.com/en-us/ex...20%20functions

hth

Carlo

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default NEED HELP!!!

counting empty cells as a unique value:
=SUMPRODUCT(1/COUNTIF(A1:F1,A1:F1&""))

excluding empty cells:
=SUMPRODUCT((A1:F1<"")/COUNTIF(A1:F1,A1:F1&""))

"CHICANO216" wrote:

How to count a character only once?

Ex. Row 1 Collumm A has character "AV" on Row 1 Collumm B has same character
"AV". How do I sum/count only AV once at the end of Row 1. My range is about
6 collumms.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 860
Default NEED HELP!!!

Hi Chicano,

Not sure of exactly what you want,maybe...

This in G1
=IF(COUNTIF(A1:F1,"AV")=1,"AV","")
will return AV if AV exists in any of the cells
otherwise blank

This in G1
=IF(COUNTIF(A1:F1,"AV")=1,1,"")
will return 1 if AV exists in any of the cells
otherwise blank

HTH
Martin



"CHICANO216" wrote in message
...
How to count a character only once?

Ex. Row 1 Collumm A has character "AV" on Row 1 Collumm B has same
character
"AV". How do I sum/count only AV once at the end of Row 1. My range is
about
6 collumms.



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



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