Introduction and usage of isnumber function

Source: Internet
Author: User
Tags numeric numeric value range

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.