Home > Software design >  Need help combining these two if statements for Google Sheets
Need help combining these two if statements for Google Sheets

Time:03-01

I want to combine these two if statements so that the cell returns "Home" if C1=E1, "Not Home" if C1<>E1, but ignores blank cells, so the cell returns blank if either C1 or E1 is blank.

=if(AND(C1=E1, C1<>"", E1<>""),"Home","")
=if(AND(C1<>E1, C1<>"", E1<>""),"Not Home","")

Please help I've been trying to do this for 3 days.

CodePudding user response:

try:

=IF((C1="") (E1="");;IF(C1=E1; "Home"; "Not Home"))
  • Related