Glad to help and thanks for the feedback
The double minus method is quite common once you start getting into slightly more advanced formulas, mostly with sumproduct, but it can be used anywhere that you want to convert TRUE / FALSE result to 1 or 0.
For what you asked, a better known method would be
Excel Formula:
=IF(OR(B2="Y",C2="Y"),1,0)
which would have the added advantage of being able to show anything where a Y is found such as "Ok" and "Check" instead of 1 and 0, where as the -- version can only show 1 or 0.