Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Converting a letter to a numeric value

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 117
Default Converting a letter to a numeric value

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")

"Jcdc" wrote:

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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Converting a letter to a numeric value

=COUNTIF(A1:A100,"x")


Gord Dibben MS Excel MVP


On Thu, 15 Apr 2010 08:33:01 -0700, Jcdc
wrote:

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?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Converting a letter to a numeric value

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!

--------------------
(Ms-Exl-Learner)
--------------------


"Jcdc" wrote:

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?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Converting a letter to a numeric value

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



On Thu, 15 Apr 2010 08:33:01 -0700, Jcdc
wrote:

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?

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
Converting RIC1 code to letter Column/Numeric Row RidgeView Excel Discussion (Misc queries) 5 March 8th 09 12:09 AM
How do I assign a numeric value to a letter IASG Excel Worksheet Functions 2 November 28th 08 10:35 AM
Convert a letter to a numeric value sherrye123 Excel Worksheet Functions 3 November 12th 07 09:54 PM
Converting Letter to Numeric Value Larry Excel Worksheet Functions 4 July 20th 07 12:55 AM
Converting Letter Grades to Numeric Angelo D Excel Worksheet Functions 6 April 25th 05 07:29 PM


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