#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Yes No

Can I write a formula in which "yes" equals 1 and "no" equals 0. So when
completed I have a sum of "yeses".
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Yes No

=--(I7="yes")


"James" wrote:

Try using an IF

=IF(I7="yes","1","0")

I J
7 yes 1
8 no 0
9 yes 1



"James C" wrote:

Can I write a formula in which "yes" equals 1 and "no" equals 0. So when
completed I have a sum of "yeses".

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Yes No

How about using the COUNTIF function?

=COUNTIF(A1:A100,"yes")

This would count the number of times that "yes" appears in the range A1 thru
A100.

HTH,
Elkar


"James C" wrote:

Can I write a formula in which "yes" equals 1 and "no" equals 0. So when
completed I have a sum of "yeses".

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Yes No

This will give you a 1 if A1 is Yes, and 0 otherwise.
=IF(A1="Yes", 1, 0)

This will give you a count of cells in Column A where the cell value is
equal to "Yes"
=COUNTIF(A:A,"Yes")


--
Hope that helps.

Vergel Adriano


"James C" wrote:

Can I write a formula in which "yes" equals 1 and "no" equals 0. So when
completed I have a sum of "yeses".

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default Yes No

Try using an IF

=IF(I7="yes","1","0")

I J
7 yes 1
8 no 0
9 yes 1



"James C" wrote:

Can I write a formula in which "yes" equals 1 and "no" equals 0. So when
completed I have a sum of "yeses".

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:31 AM.

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"