Quick summary
In Microsoft Excel, you can convert TRUE and FALSE values to 1 and 0 by wrapping a logical formula in parentheses and prefixing it with a double unary operator (--). This technique lets Excel treat Boolean results as numeric values, making them compatible with calculations and data analysis.
Steps
- Select the cell in your Excel worksheet that contains the TRUE or FALSE values you want to convert.
- Navigate to the ribbon and click the formula bar to begin editing the cell's formula.
- Enclose your logical formula in parentheses — for example, write it as (N3>5000).
- Add two dash lines (--) directly after the equals sign so the formula reads =--(N3>5000), then press Enter to run the updated formula.
- The TRUE and FALSE values in the selected cells will now display as 1 or 0.



