Introduction of Isnumber function
function function: Detects whether the parameter is a numeric value, returns Ture or false.
function syntax: isnumber (value).
Parameter: The function returns Ture (TRUE) if value is numeric, or False (false).
Second, Isnumber function usage
Example one: no Error Division formula
If the worksheet has a formula "=A1/B1" designed for C1, the error message "#DIV/0!" is displayed in C1 once the B1 cell does not enter a divisor.
This not only looks very beautiful, once printed as a report may also cause misunderstanding. To avoid the problems mentioned above, you can design the formula in cell C1 as "=if (Isnumber (B1), A1/b1,″″)". The Isnumber function in the form probes the B1 cell and returns True (True) when the B1 is filled in and returns False (false) instead. The IF function performs the A1/B1 operation for the true time, and fills in the C1 cell when false.
Example two: elimination of meaningless 0
When you use the SUM function to calculate payroll, Excel still calculates a result of "0" if the referenced range of cells does not have data. This printed report does not meet the financial requirements, the formula can be designed to
=if (Isnumber (A1:B1), SUM (A1:B1), ″″)
The Isnumber function in the formula tests whether the range of cells referenced by the SUM function is all empty, returns True (true) when it is not empty, and returns Fales (false) instead. When True, the IF function executes sum (A1:B1) and fills in a space in the F1 cell where the calculation results are false, so that "0" is avoided in the F1 cell.