Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How do I use boolean values so that a formula would evaluate TRUE as 1 and
FALSE as 0? For example, if column A contains boolean values, I want to avoid formulas like {SUM(IF(A1:A100, 1, 0))}. Instead, I would like to just enter {SUM(A1:A100)}. Presently, in such a formula both TRUE and FALSE are treated as 0. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
=COUNTIF(A1:A100,TRUE) Regards, Per "hmm" skrev i meddelelsen ... How do I use boolean values so that a formula would evaluate TRUE as 1 and FALSE as 0? For example, if column A contains boolean values, I want to avoid formulas like {SUM(IF(A1:A100, 1, 0))}. Instead, I would like to just enter {SUM(A1:A100)}. Presently, in such a formula both TRUE and FALSE are treated as 0. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
{SUM(--(A1:A100))} Regards, Stefi €˛hmm€¯ ezt Ć*rta: How do I use boolean values so that a formula would evaluate TRUE as 1 and FALSE as 0? For example, if column A contains boolean values, I want to avoid formulas like {SUM(IF(A1:A100, 1, 0))}. Instead, I would like to just enter {SUM(A1:A100)}. Presently, in such a formula both TRUE and FALSE are treated as 0. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In addition to the other replies, you can:
force the formulas that evaluate to to TRUE or FALSE to evaluate to 1 or 0 by multiplying the result by 1, or use =SUMPRODUCT(a1:a100*1) "hmm" wrote: How do I use boolean values so that a formula would evaluate TRUE as 1 and FALSE as 0? For example, if column A contains boolean values, I want to avoid formulas like {SUM(IF(A1:A100, 1, 0))}. Instead, I would like to just enter {SUM(A1:A100)}. Presently, in such a formula both TRUE and FALSE are treated as 0. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
custom format for boolean values | Excel Discussion (Misc queries) | |||
More on Boolean | New Users to Excel | |||
VBA Boolean | Excel Discussion (Misc queries) | |||
Comparing text and returning boolean values | Excel Discussion (Misc queries) | |||
I Need a formula to evaluate a cell with + or - values | Excel Worksheet Functions |