Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ferde
 
Posts: n/a
Default counting text in a column

MD RN RT
y na na
n y y
y n na
na y n

I would like to total the Y and N from each column but ignore the NA

Thank you for your help
ferde

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUM(COUNTIF(A1:A10,{"y","n"}))

In article ,
"ferde" wrote:

MD RN RT
y na na
n y y
y n na
na y n

I would like to total the Y and N from each column but ignore the NA

Thank you for your help
ferde

  #3   Report Post  
Colin Vicary
 
Posts: n/a
Default


Hi

Assuming you column heading is in A1, paste this in an empty cell

=COUNTIF(A2:A5,"Y")+COUNTIF(A2:A5,"N")

Colin


--
Colin Vicary
------------------------------------------------------------------------
Colin Vicary's Profile: http://www.excelforum.com/member.php...o&userid=10472
View this thread: http://www.excelforum.com/showthread...hreadid=395841

  #4   Report Post  
Paul Sheppard
 
Posts: n/a
Default


ferde Wrote:
MD RN RT
y na na
n y y
y n na
na y n

I would like to total the Y and N from each column but ignore the NA

Thank you for your help
ferde


Hi Ferde

Assuming Header rows are in row 1, and data in a2:c5

To Count just the "Y"'s use =COUNTIF(A2:A5,"Y") in A6 and drag across
to C6

To Count just the "N"'s use =COUNTIF(A2:A5,"N") in A6 and drag across
to C6

And to count both use =COUNTIF(A2:A5,"Y")+COUNTIF(A2:A5,"N") in A6 and
drag across to C6


Change ranges to suit your data


Hope this helps

Paul


--
Paul Sheppard
------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=395841

  #5   Report Post  
ferde
 
Posts: n/a
Default

Thank you so much , it works great

"Colin Vicary" wrote:


Hi

Assuming you column heading is in A1, paste this in an empty cell

=COUNTIF(A2:A5,"Y")+COUNTIF(A2:A5,"N")

Colin


--
Colin Vicary
------------------------------------------------------------------------
Colin Vicary's Profile: http://www.excelforum.com/member.php...o&userid=10472
View this thread: http://www.excelforum.com/showthread...hreadid=395841


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
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Counting every unique text string in a column doctor rick Excel Worksheet Functions 2 December 15th 04 07:36 AM


All times are GMT +1. The time now is 02:30 AM.

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"