Dear friends, Sorry to ask that. Is the formu...

Dear friends, Sorry to ask that. Is the formula right?

=IF(OR([ABC]=โ€œ1085โ€,[ABC]=โ€œ1087โ€,โ€œDDDโ€,""))

Thanks in advance.

0 6 539
6 REPLIES 6

There seems to be a missing closing parenthesis for OR(); this one should be correct: IF( OR([ABC]=โ€œ1085โ€,[ABC]=โ€œ1087โ€)

, โ€œDDDโ€ , โ€œโ€)

@RezaRaoofi Dear Reza, used

=IF(OR([flight]=โ€œ1085โ€,[flight]=โ€œ1087โ€),โ€œTGDโ€,""))

but error messages is

Expression โ€˜=IF(OR([flight]=โ€œ1085โ€,[flight]=โ€œ1087โ€),โ€œTGDโ€,""))โ€™ could not be parsed due to exception: Number of opened and closed parentheses does not match.

pasted it to app formula section and tried it in suggested value section too.

Yes, I later noticed and corrected my suggested formula, but I think it was too late and you got the wrong version! My bad!

Please refresh your Google plus, or reopen this post and see the correct version with one less parenthesis in the end.

@RezaRaoofi Where i need to put that formula?

I did not suggest to put the formula in a different place; I just corrected my own formula minutes after I had posted, but you got the older one with extra parenthesis.

Try this formula, it should work now:

IF(OR([flight]=โ€œ1085โ€,[flight]=โ€œ1087โ€),โ€œTGDโ€,"")

When the else value is not needed, you could write it like IFS(OR([flight]=โ€œ1085โ€,[flight]=โ€œ1087โ€),โ€œTGDโ€)

Top Labels in this Space