ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   yes / no formulas into 1/0 (https://www.excelbanter.com/excel-worksheet-functions/193708-yes-no-formulas-into-1-0-a.html)

The snow Queen

yes / no formulas into 1/0
 
Hello all i have seen that a person has asked if this can be done as a block
of three but i would like to do this on a larger scale will the formula
still fit. to count the yes's as 1.

Pete_UK

yes / no formulas into 1/0
 
Don't know what formula you are referring to, but try this:

=COUNTIF(range,"Yes")

Hope this helps.

Pete

On Jul 4, 9:36*am, The snow Queen <The snow
wrote:
Hello all i have seen that a person has asked if this can be done as a block
of three but i would like to do this on *a larger scale will the formula
still fit. to count the yes's as 1.



NoodNutt

yes / no formulas into 1/0
 
G'day Pete

I could be wrong , but I think the OL' Snow Queen is possibly referring more
to a true/false.

=IF(A1="Yes",1,0)

Regards
Mark.



Dave Peterson

yes / no formulas into 1/0
 
If that's true, then here's another formula:

=--(A1="yes")

A1="Yes"
returns true or false
-true or -false returns -1 or -0 (0)
and
--1 or --0 returns 1 or 0




NoodNutt wrote:

G'day Pete

I could be wrong , but I think the OL' Snow Queen is possibly referring more
to a true/false.

=IF(A1="Yes",1,0)

Regards
Mark.


--

Dave Peterson


All times are GMT +1. The time now is 08:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com