Display of Logical or Boolean Variables

%3CLINGO-SUB%20id%3D%22lingo-sub-2319984%22%20slang%3D%22en-US%22%3EDisplay%20of%20Logical%20or%20Boolean%20Variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319984%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20use%20an%20%3DIF%20test%20in%20one%20of%20my%20spreadsheets%20in%20a%20workbook%2C%20I%20get%201%20for%20TRUE%20and%200%20for%20FALSE.%26nbsp%3B%20%26nbsp%3BI%20would%20prefer%20to%20see%20the%20words%20TRUE%20or%20FALSE.%26nbsp%3B%20%26nbsp%3BIn%20another%20spreadsheet%20in%20the%20same%20workbook%2C%20I%20do%20get%20TRUE%20or%20FALSE%2C%20not%201%20or%200.%26nbsp%3B%20%26nbsp%3B%20What%20display%20setting%20do%20I%20have%20to%20change%20to%20get%20TRUE%20or%20FALSE%20to%20appear%20for%20Logical%20or%20Boolean%20variables%20in%20this%20one%20spreadsheet%3F%26nbsp%3B%20%26nbsp%3B%20Thanks%20for%20your%20insights.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2319984%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2320203%22%20slang%3D%22en-US%22%3ERe%3A%20Display%20of%20Logical%20or%20Boolean%20Variables%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2320203%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1044229%22%20target%3D%22_blank%22%3E%40Hal_Diamond427%3C%2FA%3E%26nbsp%3BAs%20fas%20as%20I%20know%2C%20Excel%20doesn't%20have%20the%20option%20to%20format%20a%20cell%20as%20a%20Boolean.%20A%20formula%20like%20%3CSTRONG%3E%3DA1%3DB1%3C%2FSTRONG%3E%2C%20however%2C%20will%20return%20TRUE%20or%20FALSE.%20In%20an%20IF%20formula%20you%20could%20write%20%3CSTRONG%3E%3DIF(something%2C%20TRUE%2C%20FALSE)%3C%2FSTRONG%3E.%20This%20one%20will%20also%20return%20TRUE%20or%20FALSE.%20Perhaps%20the%20formulae%20that%20return%201%20or%200%20look%20like%20this%3A%26nbsp%3B%3CSTRONG%3E%3D--(IF(something%2C%20TRUE%2C%20FALSE))%3C%2FSTRONG%3E%20.%26nbsp%3BThe%20double%20dash%20%3CSTRONG%3E--(%20%26nbsp%3B%20)%20%3C%2FSTRONG%3Econverts%20TRUE%20to%201%20and%20FALSE%20to%200.%20Or%20like%20this%3A%26nbsp%3B%3CSTRONG%3E%3DIF(something%2C%201%2C%200)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EIf%20all%20of%20this%20makes%20no%20sense%2C%20perhaps%20you%20can%20share%20examples%20of%20formulae%20where%20the%20inconsistencies%20occur.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

When I use an =IF test in one of my spreadsheets in a workbook, I get 1 for TRUE and 0 for FALSE.   I would prefer to see the words TRUE or FALSE.   In another spreadsheet in the same workbook, I do get TRUE or FALSE, not 1 or 0.    What display setting do I have to change to get TRUE or FALSE to appear for Logical or Boolean variables in this one spreadsheet?    Thanks for your insights.

1 Reply

@Hal_Diamond427 As fas as I know, Excel doesn't have the option to format a cell as a Boolean. A formula like =A1=B1, however, will return TRUE or FALSE. In an IF formula you could write =IF(something, TRUE, FALSE). This one will also return TRUE or FALSE. Perhaps the formulae that return 1 or 0 look like this: =--(IF(something, TRUE, FALSE)) . The double dash --(   ) converts TRUE to 1 and FALSE to 0. Or like this: =IF(something, 1, 0)

If all of this makes no sense, perhaps you can share examples of formulae where the inconsistencies occur.