ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Formula Problem (https://www.excelbanter.com/new-users-excel/112985-formula-problem.html)

the-jackal

Formula Problem
 
Hope someone can help,

I am using this formula =IF(AND(G12="Fail"),"1","0") and need to add up all the column but I keep getting 0 even though there are 14 1’s in the column.

Thanks in advance

Carl

Dave Peterson

Formula Problem
 
Drop the double quotes around the numbers:
=IF(AND(G12="Fail"),1,0)

Otherwise, those values will be treated as text.

the-jackal wrote:

Hope someone can help,

I am using this formula =IF(AND(G12="Fail"),"1","0") and need to add up
all the column but I keep getting 0 even though there are 14 1’s in the
column.

Thanks in advance

Carl

--
the-jackal


--

Dave Peterson

Pete_UK

Formula Problem
 
I'm not sure why you need the AND in there, and you don't need the
double-quotes, as the returned values will be treated as text (and thus
sum to zero). Try this

=IF(G12="Fail",1,0)

and copy down the column as needed.

Hope this helps.

Pete

the-jackal wrote:
Hope someone can help,

I am using this formula =IF(AND(G12="Fail"),"1","0") and need to add up
all the column but I keep getting 0 even though there are 14 1's in the
column.

Thanks in advance

Carl




--
the-jackal




All times are GMT +1. The time now is 12:03 AM.

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