Share via

The 0 and null in the condition of the IF function

01 wyeu 140 Reputation points
2024-09-16T14:09:45.9833333+00:00

If A1=0, then B1 displays' No ',

If A1 is null, then B1 displays "/",

Otherwise, B1 will display 'Other'

Microsoft 365 and Office | Excel | For business | Windows
{count} votes

Answer accepted by question author
  1. Barry Schwarz 5,346 Reputation points
    2024-09-16T23:12:11.4233333+00:00

    The IFS function is one way to achieve this.

    =IFS(A1="","/",A1=0,"No",TRUE,"Other")
    

    I assumed your quotation marks were grammatical and not part of the desired display.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.