Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Counting non-numeric values

If you want to count the cells that have only either an upper or lower case
'x' in them, use

=COUNTIF(A7:K7,"x")

If you need to distinguish between upper and lower case, use the following
array formula and change the case of the 'x' character to the desired case

=SUM(--(EXACT(A7:K7,"X")))

Since this second formula is an array formula, you must press CTRL SHIFT
ENTER rather than just ENTER when you first enter the formula and whenever
you edit it later. If you do this properly, Excel will display the formula
in the formula bar enclosed in curly braces { }. See
http://www.cpearson.com/Excel/ArrayFormulas.aspx for more info about array
formulas.

If you want to count the cells that have an 'x' character anywhere,
including values with other characters (e.g., 'AbxC') use

=COUNTIF(A7:K7,"*x*")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)



"paljowestsub" wrote in message
...
I have a spreadsheet with the letter x in various cells. I want to count
the
number of x's in a particular row of cells. What formula do I use and how
do
I structure the formula?

Thank you!
Joe Palczynski


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Counting non-numeric values

Thank you Very much! That did it!
--
JP


"Chip Pearson" wrote:

If you want to count the cells that have only either an upper or lower case
'x' in them, use

=COUNTIF(A7:K7,"x")

If you need to distinguish between upper and lower case, use the following
array formula and change the case of the 'x' character to the desired case

=SUM(--(EXACT(A7:K7,"X")))

Since this second formula is an array formula, you must press CTRL SHIFT
ENTER rather than just ENTER when you first enter the formula and whenever
you edit it later. If you do this properly, Excel will display the formula
in the formula bar enclosed in curly braces { }. See
http://www.cpearson.com/Excel/ArrayFormulas.aspx for more info about array
formulas.

If you want to count the cells that have an 'x' character anywhere,
including values with other characters (e.g., 'AbxC') use

=COUNTIF(A7:K7,"*x*")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)



"paljowestsub" wrote in message
...
I have a spreadsheet with the letter x in various cells. I want to count
the
number of x's in a particular row of cells. What formula do I use and how
do
I structure the formula?

Thank you!
Joe Palczynski


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 non-numeric values T. Valko Excel Discussion (Misc queries) 2 January 2nd 08 02:59 AM
Counting non-numeric values JE McGimpsey Excel Discussion (Misc queries) 1 January 2nd 08 02:41 AM
Return Numeric Labels that have different Numeric Values Sam via OfficeKB.com Excel Worksheet Functions 8 December 3rd 06 02:06 AM
Text values to numeric values jayveejay Excel Discussion (Misc queries) 1 August 10th 05 05:03 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM


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