Converting a letter to a numeric value

J

Jcdc

I have a spreadsheet where I need to tally the number of Yes, No and N/A
anwsers. How can I add them if the letter
"x" is being used to mark the answer?
 
R

RonaldoOneNil

Assuming you have 3 columns for Yes, No and N/A and they are putting an X in
the relevant column, you can use the countif function for each columns range
e.g.
=COUNTIF(A1:A500,"x")
=COUNTIF(B1:B500,"x")
=COUNTIF(C1:C500,"x")
 
M

Ms-Exl-Learner

Assume that your “YESâ€, “NO†and N/A values are in A Column from A1 to A100
and the marking text X in B column from B1 to B100.

Count Number of Yes From A1 to A100
=SUMPRODUCT((A1:A100="YES")*(B1:B100="X"))

Count Number of NO From A1 to A100
=SUMPRODUCT((A1:A100="NO")*(B1:B100="X"))

Count Number of N/A From A1 to A100
=SUMPRODUCT((A1:A100="N/A")*(B1:B100="X"))

To get all the above in one instance try the below one.
=SUMPRODUCT((A1:A100="YES")*(B1:B100="X"))&" YES -
"&SUMPRODUCT((A1:A100="NO")*(B1:B100="X"))&" NO -
"&SUMPRODUCT((A1:A100="N/A")*(B1:B100="X"))&" N/A"

Remember to Click Yes, if this post helps!
 
C

Chip Pearson

The COUNTIF function can do this. E.g,.

=COUNTIF(A1:A10,"x")

will return the number of "x" entries in the range A1:A10.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
 

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

Top