Chris90
Chris90

Reputation: 1998

If statement based on multiple columns

In google sheets, how can I write an if statement that based on multiple columns, I can get a numerical value?

I have something like below that gives me a value if Yes or No,

=IF($G502="Yes",5,0)

If I want to say if $G502 and $H502 and $I502 and $k502 are all no, give me the value of 5?

Thanks!

Upvotes: 1

Views: 375

Answers (1)

player0
player0

Reputation: 1

try:

=IF((G502="no")*(H502="no")*(I502="no")*(k502="no"), 5, 0)

Upvotes: 2

Related Questions