Convert Numbers To 1 Or 0 Excel Formula
If the number in column B is greater than zero, IF returns 1, otherwise IF returns zero. With the IF function One way to handle this problem is with the IF function. In the example shown, the formula in D5, copied down, is: The logic is simple: when the number B5 is greater than zero, IF returns 1, otherwise IF returns 0. The logical test inside IF can be adjusted to apply different logic if needed....