Problem
We would like to hide the contents of a cell based on the value of another cell.
Solution
In A2 we apply a conditional formatting rule that hides the content of that cell if it is equal to B2.
In Conditional Formatting we create the following rule: =$A$2=$B$2, then press Format...
- On the Format menu, click Cells, and then click the Number tab.
- Under Category, click Custom.
- In the Type box, type ;;; (that is, three semicolons in a row), and then click OK
Notes
Why do we need to add three semicolons as a custom Excel format? The reason behind is that custom number formats consist of four sections separated by three semicolons, so if we just type three semicolons and nothing else, the cell will appear empty.
References
No hay comentarios:
Publicar un comentario