if cell contains number excel
Here's what this formula does: 1  First, it checks the contents of A2. 2  If A2 contains a number, the formula calculates A2*B2 and returns the result. 3  If A2 doesn't contain a number, the formula simply returns  - quote marks with nothing between them. In doing so, cell C2 appears to be empty.