Hello. I wanted to know if it's possible to combine an if statement with multiple and functions as well as or. I am trying to do something like this:
However, I am getting a compile error saying it is expected a ). I am unsure if what I am trying to do is possible or if I am just entering the information incorrectly. Any help would be much appreciated. Thank you.
VBA Code:
If (UCase(Cells(i, "G").Value) <> "" And (UCase(Cells(i, "D").Value) = "PIZZA") Or (UCase(Cells(i, "G").Value) <> "" And (UCase(Cells(i, "D").Value) = "HAMBURGERS") Then
However, I am getting a compile error saying it is expected a ). I am unsure if what I am trying to do is possible or if I am just entering the information incorrectly. Any help would be much appreciated. Thank you.