Excel calculate cells using a mask - Logical operators