Is not number excel formula

Return value 

A logical value (TRUE or FALSE)

Usage notes 

The ISNUMBER function returns TRUE when a cell contains a number, and FALSE if not. You can use ISNUMBER to check that a cell contains a numeric value, or that the result of another function is a number.

The ISNUMBER function takes one argument, value, which can be a cell reference, a formula, or a hardcoded value. Typically, value is entered as a cell reference like A1. When value is a number, the ISNUMBER function will return TRUE. Otherwise, ISNUMBER will return FALSE.

Examples

The ISNUMBER function returns TRUE if value is numeric:

=ISNUMBER("apple") // returns FALSE
=ISNUMBER(100) // returns TRUE

If cell A1 contains the number 100, ISNUMBER returns TRUE:

=ISNUMBER(A1) // returns TRUE

If a cell contains a formula, ISNUMBER checks the result of the formula:

=ISNUMBER(2+2) // returns TRUE
=ISNUMBER(2^3) // returns TRUE
=ISNUMBER(10 &" apples") // returns FALSE

Note: the ampersand (&) is the concatenation operator in Excel. When values are concatenated, the result is text.

Count numeric values

To count cells in a range that contain numbers, you can use the SUMPRODUCT function like this:

=SUMPRODUCT(--ISNUMBER(range))

The double negative coerces the TRUE and FALSE results from ISNUMBER into 1s and 0s and SUMPRODUCT sums the result.

Notes

  • ISNUMBER will return TRUE for Excel dates and times since they are numeric.
  • ISNUMBER will return FALSE for empty cells and errors.
Date yes Add (Subtract) Days to a Date Concatenate Dates Convert Date to Number Convert Date to Text Month Name to Number Create Date Range from Dates Day Number of Year Month Name from Date First Day of Month Add (Subtract) Weeks to a Date If Functions with Dates Max Date Number of Days Between Dates Number of Days in a Month Number of Weeks Between Dates Number of Years Between Dates Split Date & Time into Separate Cells Countdown Remaining Days Insert Dates Random Date Generator Using Dynamic Ranges — Year to Date Values Add (Subtract) Years to a Date Date Formula Examples Extract Day from Date Get Day Name from Date Count Days Left in Month / Year Count Workdays Left in Month / Year Get Last Day of Month Last Business Day of Month / Year Number of Work / Business Days in Month Weekday Abbreviations Auto Populate Dates Number of Months Between Dates Quarter from a Date Years of Service Change Date Format Compare Dates Time yes Add (Subtract) Hours to Time Add (Subtract) Minutes to Time Add (Subtract) Seconds to Time Add Up time (Total Time) Time Differences Change Time Format Convert Minutes to Hours Convert Time to Decimal Convert Time to Hours Convert Time to Minutes Convert Time to Seconds Military Time Round Time to Nearest 15 Minutes Overtime Calculator Number of Hours Between Times Convert Seconds to Minutes, Hours, or Time Count Hours Worked Time Differences Time Format — Show Minutes Seconds Text yes Add Commas to Cells Get First Word from Text Capitalize First Letter Clean & Format Phone #s Remove Extra Trailing / Leading Spaces Add Spaces to Cell Assign Number Value to Text Combine Cells with Comma Combine First and Last Names Convert Text String to Date Convert Text to Number Extract Text From Cell Get Last Word Remove Unwated Characters Extract Text Before or After Character How to Split Text String by Space, Comma, & More Remove Special Characters Remove First Characters from Left Substitute Multiple Values Switch First & Last Names w/ Commas Remove Specific Text from a Cell Extract Text Between Characters (Ex. Parenthesis) Add Leading Zeros to a Number Remove Line Breaks from Text Remove all Numbers from Text Reverse Text Remove Non-Numeric Characters Remove Last Character(s) From Right Separate First and Last Names Separate Text & Numbers Round yes Round Formulas Round Price to Nearest Dollar or Cent Round to Nearest 10, 100, or 1000 Round to Nearest 5 or .5 Round Percentages Round to Significant Figures Count yes Count Blank and Non-blank Cells Count Cells Between Two Numbers Count Cells not Equal to Count if Cells are in Range Count Times Word Appears in Cell Count Words in Cell Count Specific Characters in Column Count Total Number of Characters in Column Count Cells that Equal one of two Results Count Cells that do not Contain Count Cells that Contain Specific Text Count Unique Values in Range Countif — Multiple Criteria Count Total Number of Cells in Range Count Cells with Any Text Count Total Cells in a Table Lookup yes Two Dimensional VLOOKUP VLOOKUP Simple Example Vlookup — Multiple Matches Case Sensitive Lookup Case Sensitive VLOOKUP Sum if — VLOOKUP Case Sensitive Lookup Case Sensitive VLOOKUP Find Duplicates w/ VLOOKUP or MATCH INDEX MATCH MATCH Lookup — Return Cell Address (Not Value) Lookup Last Value in Column or Row Reverse VLOOKUP (Right to Left) Risk Score Bucket with VLOOKUP Sum with a VLOOKUP Function VLOOKUP & INDIRECT VLOOKUP Concatenate VLOOKUP Contains (Partial Match) 17 Reasons Why Your XLOOKUP is Not Working Double (Nested) XLOOKUP — Dynamic Columns IFERROR (& IFNA) XLOOKUP Lookup Min / Max Value Nested VLOOKUP Top 11 Alternatives to VLOOKUP (Updated 2022!) VLOOKUP – Dynamic Column Reference VLOOKUP – Fix #N/A Error VLOOKUP – Multiple Sheets at Once VLOOKUP & HLOOKUP Combined VLOOKUP & MATCH Combined VLOOKUP Between Worksheets or Spreadsheets VLOOKUP Duplicate Values VLOOKUP Letter Grades VLOOKUP Return Multiple Columns VLOOKUP Returns 0? Return Blank Instead VLOOKUP w/o #N/A Error XLOOKUP Multiple Sheets at Once XLOOKUP Between Worksheets or Spreadsheets XLOOKUP by Date XLOOKUP Duplicate Values XLOOKUP Multiple Criteria XLOOKUP Return Multiple Columns XLOOKUP Returns 0? Return Blank Instead XLOOKUP Text XLOOKUP with IF XLOOKUP With If Statement Misc. yes Sort Multiple Columns Use Cell Value in Formula Percentage Change Between Numbers Percentage Breakdown Rank Values Add Spaces to Cell CAGR Formula Average Time Decimal Part of Number Integer Part of a Number Compare Items in a List Dealing with NA() Errors Get Worksheet Name Wildcard Characters Hyperlink to Current Folder Compound Interest Formula Percentage Increase Create Random Groups Sort with the Small and Large Functions Non-volatile Function Alternatives Decrease a Number by a Percentage Calculate Percent Variance Profit Margin Calculator Convert Column Number to Letter Get Full Address of Named Range Insert File Name Insert Path Latitute / Longitude Functions Replace Negative Values Reverse List Range Convert State Name to Abbreviation Create Dynamic Hyperlinks Custom Sort List with Formula Data Validation — Custom Formulas Dynamic Sheet Reference (INDIRECT) Reference Cell in Another Sheet or Workbook Get Cell Value by Address Get Worksheet Name Increment Cell Reference List Sheet Names List Skipped Numbers in Sequence Return Address of Max Value in Range Search by Keywords Select Every Other (or Every nth) Row Basics yes Cell Reference Basics — A1, R1C1, 3d, etc. Add Up (Sum) Entire Column or Row Into to Dynamic Array Formulas Conversions yes Convert Time Zones Convert Celsius to Fahrenheit Convert Pounds to Kilograms Convert Time to Unix Time Convert Feet to Meters Convert Centimeters to Inches Convert Kilometers to Miles Convert Inches to Feet Convert Date to Julian Format Convert Column Letter to Number Tests yes Test if a Range Contains any Text Test if any Cell in Range is Number Test if a Cell Contains a Specific Value Test if Cell Contains Any Number Test if Cell Contains Specific Number Test if Cell is Number or Text If yes Percentile If Subtotal If Sumproduct If Large If and Small If Median If Concatentate If Max If Rank If TEXTJOIN If Sum yes Sum if — Begins With / Ends With Sum if — Month or Year to Date Sum if — By Year Sum if — Blank / Non-Blank Sum if — Horizontal Sum Count / Sum If — Cell Color INDIRECT Sum Sum If — Across Multiple Sheets Sum If — By Month Sum If — Cells Not Equal To Sum If — Not Blank Sum if — Between Values Sum If — Week Number Sum Text Sum if — By Category or Group Sum if — Cell Contains Specific Text (Wildcards) Sum if — Date Rnage Sum if — Dates Equal Sum if — Day of Week Sum if — Greater Than Sum if — Less Than Average yes Average Non-Zero Values Average If — Not Blank Average — Ignore 0 Average — Ignore Errors Math yes Multiplication Table Cube Roots nth Roots Square Numbers Square Roots Calculations yes Calculate a Ratio Calculate Age KILLLLLLL Calculate Loan Payments GPA Formula Calculate VAT Tax How to Grade Formulas Find yes Find a Number in a Column / Workbook Find Most Frequent Numbers Find Smallest n Values Find nth Occurance of Character in Text Find and Extract Number from String Find Earliest or Latest Date Based on Criteria Find First Cell with Any Value Find Last Row Find Last Row with Data Find Missing Values Find Largest n Values Most Frequent Number Conditional Formatting yes Conditional Format — Dates & Times Conditional Format — Highlight Blank Cells New Functions XLOOKUP Replaces VLOOKUP, HLOOKUP, and INDEX / MATCH Logical yes AND Checks whether all conditions are met. TRUE/FALSE IF If condition is met, do something, if not, do something else. IFERROR If result is an error then do something else. NOT Changes TRUE to FALSE and FALSE to TRUE. OR Checks whether any conditions are met. TRUE/FALSE XOR Checks whether one and only one condition is met. TRUE/FALSE Lookup & Reference yes FALSE The logical value: FALSE. TRUE The logical value: TRUE. ADDRESS Returns a cell address as text. AREAS Returns the number of areas in a reference. CHOOSE Chooses a value from a list based on it’s position number. COLUMN Returns the column number of a cell reference. COLUMNS Returns the number of columns in an array. HLOOKUP Lookup a value in the first row and return a value. HYPERLINK Creates a clickable link. INDEX Returns a value based on it’s column and row numbers. INDIRECT Creates a cell reference from text. LOOKUP Looks up values either horizontally or vertically. MATCH Searches for a value in a list and returns its position. OFFSET Creates a reference offset from a starting point. ROW Returns the row number of a cell reference. ROWS Returns the number of rows in an array. TRANSPOSE Flips the oriention of a range of cells. VLOOKUP Lookup a value in the first column and return a value. Date & Time yes DATE Returns a date from year, month, and day. DATEDIF Number of days, months or years between two dates. DATEVALUE Converts a date stored as text into a valid date DAY Returns the day as a number (1-31). DAYS Returns the number of days between two dates. DAYS360 Returns days between 2 dates in a 360 day year. EDATE Returns a date, n months away from a start date. EOMONTH Returns the last day of the month, n months away date. HOUR Returns the hour as a number (0-23). MINUTE Returns the minute as a number (0-59). MONTH Returns the month as a number (1-12). NETWORKDAYS Number of working days between 2 dates. NETWORKDAYS.INTL Working days between 2 dates, custom weekends. NOW Returns the current date and time. SECOND Returns the second as a number (0-59) TIME Returns the time from a hour, minute, and second. TIMEVALUE Converts a time stored as text into a valid time. TODAY Returns the current date. WEEKDAY Returns the day of the week as a number (1-7). WEEKNUM Returns the week number in a year (1-52). WORKDAY The date n working days from a date. WORKDAY.INTL The date n working days from a date, custom weekends. YEAR Returns the year. YEARFRAC Returns the fraction of a year between 2 dates. Engineering yes CONVERT Convert number from one unit to another. Financial yes FV Calculates the future value. PV Calculates the present value. NPER Calculates the total number of payment periods. PMT Calculates the payment amount. RATE Calculates the interest Rate. NPV Calculates the net present value. IRR The internal rate of return for a set of periodic CFs. XIRR The internal rate of return for a set of non-periodic CFs. PRICE Calculates the price of a bond. YIELD Calculates the bond yield. INTRATE The interest rate of a fully invested security. Information yes CELL Returns information about a cell. ERROR.TYPE Returns a value representing the cell error. ISBLANK Test if cell is blank. TRUE/FALSE ISERR Test if cell value is an error, ignores #N/A. TRUE/FALSE ISERROR Test if cell value is an error. TRUE/FALSE ISEVEN Test if cell value is even. TRUE/FALSE ISFORMULA Test if cell is a formula. TRUE/FALSE ISLOGICAL Test if cell is logical (TRUE or FALSE). TRUE/FALSE ISNA Test if cell value is #N/A. TRUE/FALSE ISNONTEXT Test if cell is not text (blank cells are not text). TRUE/FALSE ISNUMBER Test if cell is a number. TRUE/FALSE ISODD Test if cell value is odd. TRUE/FALSE ISREF Test if cell value is a reference. TRUE/FALSE ISTEXT Test if cell is text. TRUE/FALSE N Converts a value to a number. NA Returns the error: #N/A. TYPE Returns the type of value in a cell. Math yes ABS Calculates the absolute value of a number. AGGREGATE Define and perform calculations for a database or a list. CEILING Rounds a number up, to the nearest specified multiple. COS Returns the cosine of an angle. DEGREES Converts radians to degrees. DSUM Sums database records that meet certain criteria. EVEN Rounds to the nearest even integer. EXP Calculates the exponential value for a given number. FACT Returns the factorial. FLOOR Rounds a number down, to the nearest specified multiple. GCD Returns the greatest common divisor. INT Rounds a number down to the nearest integer. LCM Returns the least common multiple. LN Returns the natural logarithm of a number. LOG Returns the logarithm of a number to a specified base. LOG10 Returns the base-10 logarithm of a number. MOD Returns the remainder after dividing. MROUND Rounds a number to a specified multiple. ODD Rounds to the nearest odd integer. PI The value of PI. POWER Calculates a number raised to a power. PRODUCT Multiplies an array of numbers. QUOTIENT Returns the integer result of division. RADIANS Converts an angle into radians. RAND Calculates a random number between 0 and 1. RANDBETWEEN Calculates a random number between two numbers. ROUND Rounds a number to a specified number of digits. ROUNDDOWN Rounds a number down (towards zero). ROUNDUP Rounds a number up (away from zero). SIGN Returns the sign of a number. SIN Returns the sine of an angle. SQRT Calculates the square root of a number. SUBTOTAL Returns a summary statistic for a series of data. SUM Adds numbers together. SUMIF Sums numbers that meet a criteria. SUMIFS Sums numbers that meet multiple criteria. SUMPRODUCT Multiplies arrays of numbers and sums the resultant array. TAN Returns the tangent of an angle. TRUNC Truncates a number to a specific number of digits. Stats yes AVERAGE Averages numbers. AVERAGEA Averages numbers. Includes text & FALSE =0, TRUE =1. AVERAGEIF Averages numbers that meet a criteria. AVERAGEIFS Averages numbers that meet multiple criteria. CORREL Calculates the correlation of two series. COUNT Counts cells that contain a number. COUNTA Count cells that are non-blank. COUNTBLANK Counts cells that are blank. COUNTIF Counts cells that meet a criteria. COUNTIFS Counts cells that meet multiple criteria. FORECAST Predict future y-values from linear trend line. FREQUENCY Counts values that fall within specified ranges. GROWTH Calculates Y values based on exponential growth. INTERCEPT Calculates the Y intercept for a best-fit line. LARGE Returns the kth largest value. LINEST Returns statistics about a trendline. MAX Returns the largest number. MEDIAN Returns the median number. MIN Returns the smallest number. MODE Returns the most common number. PERCENTILE Returns the kth percentile. PERCENTILE.INC Returns the kth percentile. Where k is inclusive. PERCENTILE.EXC Returns the kth percentile. Where k is exclusive. QUARTILE Returns the specified quartile value. QUARTILE.INC Returns the specified quartile value. Inclusive. QUARTILE.EXC Returns the specified quartile value. Exclusive. RANK Rank of a number within a series. RANK.AVG Rank of a number within a series. Averages. RANK.EQ Rank of a number within a series. Top Rank. SLOPE Calculates the slope from linear regression. SMALL Returns the kth smallest value. STDEV Calculates the standard deviation. STDEV.P Calculates the SD of an entire population. STDEV.S Calculates the SD of a sample. STDEVP Calculates the SD of an entire population TREND Calculates Y values based on a trendline. Text yes CHAR Returns a character specified by a code. CLEAN Removes all non-printable characters. CODE Returns the numeric code for a character. CONCATENATE Combines text together. DOLLAR Converts a number to text in currency format. EXACT Test if cells are exactly equal. Case-sensitive. TRUE/FALSE FIND Locates position of text within a cell.Case-sensitive. LEFT Truncates text a number of characters from the left. LEN Counts number of characters in text. LOWER Converts text to lower case. MID Extracts text from the middle of a cell. PROPER Converts text to proper case. REPLACE Replaces text based on it’s location. REPT Repeats text a number of times. RIGHT Truncates text a number of characters from the right. SEARCH Locates position of text within a cell.Not Case-sensitive. SUBSTITUTE Finds and replaces text. Case-sensitive. TEXT Converts a value into text with a specific number format. TRIM Removes all extra spaces from text. UPPER Converts text to upper case. VALUE Converts a number stored as text into a number.

Checks if a cell contains a number or not

What is the Excel ISNUMBER Function?

The Excel ISNUMBER Function[1] is categorized under Information functions. The function checks if a cell in Excel contains a number or not. It will return TRUE if the value is a number and if not, a FALSE value. For example, if the given value is a text, date, or time, it will return FALSE.

As a financial analyst, when dealing with large amounts of data, ISNUMBER Excel function helps in testing if a given result of a formula is a number or not.

Formula

=ISNUMBER(value)

The Excel ISNUMBER function uses the following arguments:

  1. Value (required argument) – This is the expression or value that needs to be tested. It is generally provided as a cell address.

The ISNUMBER Excel function will return a logical value, which is TRUE or FALSE.

How to use the ISNUMBER Excel Function?

To understand the uses of the ISNUMBER Excel function, let’s consider a few examples:

Example 1

Let’s first understand how the function behaves using the following set of data:

Data Formula Result Remark
1 =ISNUMBER(1) TRUE The value provided is a number, so the function returned TRUE.
TEXT =ISNUMBER(TEXT) FALSE The function returns FALSE for text values.
10/20 =ISNUMBER(10/20) TRUE The formula will return a number, so the function returned TRUE.
#NAME? =ISNUMBER(#NAME?) FALSE The function returned FALSE for formula errors.
=ISNUMBER( ) FALSE The result is FALSE, as it is not a number.

Example 2 – Check if Excel contains a number in a cell

Suppose we wish to allow values that contain the text string XY. Using ISNUMBER along with data validation, we can check if Excel contains “XY” in the cell. Suppose we are given the following data:

ISNUMBER Excel Function

To allow only values that contain a specific text string, we can use data validation with a customized formula based on the FIND and ISNUMBER Excel functions. Essentially, it checks if Excel contains a number in the cell or not. To do this, we will apply data validation to C4:C11 cells. To apply the data validation, click on the Data tab, go to Data Tools, and click on Data Validation, as shown below:

Excel ISNUMBER Function - Example 1

Now, select Data validation and click on Settings. As shown below, enter the formula =ISNUMBER(FIND(“XY”,C4)). To activate the formula cell, you need to choose Validation criteria – Allow – Custom.

Excel Contains Number - Example 1a

When someone tries to change XY into something else, data validation rules are triggered, particularly when a user adds or changes a cell value.

ISNUMBER Function - Example 1b

The FIND function is shaped to search for the text “XY” in cell C4. If found, FIND will return a numeric position (e.g., 2, 4, 5, etc.) for the starting point of the text in the cell. If the text is not found, FIND will return an error. For C4, FIND will return 5, since “XY” starts at character 5.

The result from using the FIND function above is then evaluated by the ISNUMBER Excel function. For any numeric result returned by FIND, ISNUMBER will return TRUE and validation will succeed. When text is not found, FIND will return an error, ISNUMBER will return FALSE, and the input will fail validation.

A few notes about the ISNUMBER Function

  1. The function is part of the IS functions that return the logical values TRUE or FALSE.
  2. The function doesn’t return any error such as #NAME!, #N/A!, etc., as it just evaluates data.
  3. The function was introduced in MS Excel 2000.

Click here to download the sample Excel file

Additional Resources

Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:

  • Excel Functions for Finance
  • Advanced Excel Formulas Course
  • Advanced Excel Formulas You Must Know
  • Excel Shortcuts for PC and Mac
  • See all Excel resources

ISNUMBER Function in Excel

ISNUMBER function in excel is an information function that checks if the referred cell value is numeric or non-numeric. Its output is a boolean value (“True,” if the “value” parameter is numeric or “False” if the “value” parameter is non-numeric)

Syntax

The ISNUMBER formula is stated as follows:

ISNUMBER Formula in Excel

You are free to use this image on your website, templates, etc, Please provide us with an attribution linkArticle Link to be Hyperlinked
For eg:
Source: ISNUMBER in Excel (wallstreetmojo.com)

The ISNUMBER formula has only one parameter, the “value.”

  • Value: It is a flexible parameter. It can be another function or formula, a cell, or value that needs testing if it is numeric or not.

The ISNUMBER formula returns the following logical values:

  • “True,” if the “value” parameter is numeric.
  • “False,” if the “value” parameter is non-numeric.

The formula is represented in the following format.

“=ISNUMBER(Reference Cell)”

The argument “reference cell” refers to the cell which we want to check or identify.

Let us consider the following ISNUMBER formula.

“=ISNUMBER(T1XT)”

The output is “false,” as the argument T1XT does not have numbers in it.

Table of contents
  • ISNUMBER Function in Excel
    • Syntax
    • Characteristics of ISNUMBER Function
    • How to Use the ISNUMBER Function in Excel?
    • How to use Excel ISNUMBER Function and the SEARCH Function?
    • Frequently Asked Questions (FAQs)
    • ISNUMBER in Excel Video
    • Recommended Articles

Characteristics of ISNUMBER Function

  • It returns a Boolean value (“true” or “false”).
  • It finds its usage as a worksheet (WS) function.
  • It is a part of IS functions group of Excel.

How to Use the ISNUMBER Function in Excel?

Let us understand the uses of this function with few examples of actual data.

You can download this ISNUMBER Function Excel Template here – ISNUMBER Function Excel Template

Let us enter a few values given in the table below and test the behavior of the ISNUMBER function.

How to use Excel ISNUMBER Function and the SEARCH Function?

The ISNUMBER function, together with the SEARCH function, checks if a cell contains a specific sub-string among the text string.

SEARCH function in ExcelSearch function gives the position of a substring in a given string when we give a parameter of the position to search from. As a result, this formula requires three arguments. The first is the substring, the second is the string itself, and the last is the position to start the search.read more will return the position (or index) of a specified substring within a text string. It belongs to the Excel TEXT functions category. It allows running a case-insensitive search on text and supports the usage of wild cards.

We will understand how the ISNUMBER function works together with the SEARCH function in the following example.

Let us use other functions (e.g., SEARCH function) as parameters for the ISNUMBER function and test its behavior (as shown in the table below).

Example 2

Consider the ISNUMBER formula mentioned in the table,

“=ISNUMBER(SEARCH(B14,A14))”

Now, we will observe how this formula works,

  • At first, the SEARCH function looks for the substring “Excel” (B14) in the specified cell (A14). It returns the position of the substring as 12. If the substring is not found, it returns an error value (#VALUE).
  • Then, the ISNUMBER function checks whether the SEARCH function returns a numeric value; if yes, the output is “true.” If the SEARCH shows an error value (non-numeric), then ISNUMBER returns “false.”

Frequently Asked Questions (FAQs)

What is the Excel ISNUMBER function?

The ISNUMBER function checks if a cell contains a number or not. It returns “true” if the value is numeric, and if not, it returns a “false.”

How to use ISNUMBER in Excel?

We use the ISNUMBER function to test if a value is a number. It will return “true” when the value is numeric and “false” when non-numeric.
Let us consider the syntax “=ISNUMBER(G1).” It returns “true” if the argument “G1” contains a number or a formula that returns a numeric value. It returns “false” if the argument “G1” contains the text.

How do ISNUMBER and ISTEXT functions differ?

The ISNUMBER function helps to check whether a value in a cell or a value resulting from another formula is a number. The output of ISNUMBER is either “true” or “false.”
The ISTEXT function checks whether a value is a text or not. The result of this function is also either “true” or “false.” Moreover, using this function, you can find if a value in a cell is a numeric value entered as text.

• The ISNUMBER function is an information function used to find if the cell value in reference is a numerical value or not. It returns values as “true” or “false.”

• The formula for the ISNUMBER function is “=ISNUMBER (value).”

• It is a worksheet (WS) function in Excel.

• It is a Boolean function of Excel which gives the output as “true” or “false.”

• The ISNUMBER function along with the Excel SEARCH function, checks if a cell contains a specific text among the content of the cell.

ISNUMBER in Excel Video

Recommended Articles

This is a guide to the ISNUMBER function in Excel. In this article, we have discussed how to use this function along with step-by-step examples and a downloadable template. You may also look at the below useful functions in Excel –

  • Excel Auto NumberThere are two approaches for auto numbering. To begin, fill the first two cells with the series you wish to insert and drag it to the table’s end. Second, use the =ROW() formula to get the number, and then drag it to the table’s end.read more
  • Numbering in ExcelNumbering in excel means providing a cell with numbers which are like serial numbers to some table, obviously it can also be done manually by filling first two cells with numbers and drag down to the end to table which excels will automatically fill the series.read more
  • MAX in ExcelThe MAX Formula in Excel is used to calculate the maximum value from a set of data/array. It counts numbers but ignores empty cells, text, the logical values TRUE and FALSE, and text values.read more
  • SUMPRODUCT Function in ExcelThe SUMPRODUCT excel function multiplies the numbers of two or more arrays and sums up the resulting products.read more
  • Excel Shortcut Paste ValuesPasting values is a common procedure that allows us to eliminate any formatting and formulas from the copied cell and paste them into the pasted cell. «Alt + E + S + V» is the shortcut key for pasting values.read more

В учебнике объясняется, что такое ISNUMBER в Excel, и приводятся примеры базового и расширенного использования.

Концепция функции ЕЧИСЛО в Excel очень проста — она просто проверяет, является ли заданное значение числом или нет. Важным моментом здесь является то, что практическое использование функции выходит далеко за рамки ее основной концепции, особенно в сочетании с другими функциями в более крупных формулах.

Функция ЕЧИСЛО в Excel проверяет, содержит ли ячейка числовое значение или нет. Он относится к группе функций ИС.

Функция доступна во всех версиях Excel для Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2010, Excel 2007 и более ранних версиях.

Синтаксис ISNUMBER требует только одного аргумента:

=ЧИСЛО(значение)

Где ценность это значение, которое вы хотите проверить. Обычно он представлен ссылкой на ячейку, но вы также можете указать реальное значение или вложить другую функцию в ISNUMBER для проверки результата.

Если ценность является числовым, функция возвращает ИСТИНА. Для всего остального (текстовые значения, ошибки, пробелы) ISNUMBER возвращает FALSE.

В качестве примера, давайте проверим значения в ячейках с A2 по A6, и мы обнаружим, что первые 3 значения являются числами, а последние два — текстом:
Функция ЕЧИСЛО в Excel

2 вещи, которые вы должны знать о функции ISNUMBER в Excel

Здесь следует отметить несколько интересных моментов:

  • Во внутреннем представлении Excel даты и время являются числовыми значениями, поэтому формула ЕЧИСЛО возвращает для них ИСТИНА (см. B3 и B4 на снимке экрана выше).
  • Для чисел, сохраненных в виде текста, функция ЕЧИСЛО возвращает ЛОЖЬ (см. этот пример).

Примеры формулы ЕЧИСЛО в Excel

В приведенных ниже примерах показано несколько распространенных и несколько нетривиальных способов использования ISNUMBER в Excel.

Проверить, является ли значение числом

Если у вас есть множество значений на листе и вы хотите знать, какие из них являются числами, ISNUMBER — это правильная функция для использования.

В этом примере первое значение находится в A2, поэтому мы используем приведенную ниже формулу, чтобы проверить его, а затем перетащите формулу вниз на столько ячеек, сколько необходимо:

=ЧИСЛО(A2)
Проверка, является ли значение числом

Обратите внимание, хотя все значения выглядят как числа, формула ЕЧИСЛО вернула ЛОЖЬ для ячеек A4 и A5, что означает, что эти значения являются числовыми строками, т. е. числами, отформатированными как текст. Для этого могут быть разные причины, например ведущие нули, предшествующий апостроф и т. д. Какой бы ни была причина, Excel не распознает такие значения как числа. Итак, если ваши значения не вычисляются правильно, первое, что вам нужно проверить, это действительно ли они являются числами с точки зрения Excel, а затем преобразовать текст в число, если это необходимо.

формула ПОИСК ISNUMBER в Excel

Помимо определения чисел функция ЕЧИСЛО Excel также может проверять, содержит ли ячейка определенный текст как часть содержимого. Для этого используйте ISNUMBER вместе с функцией SEARCH.

В общем виде формула выглядит следующим образом:

IНОМЕР(ПОИСК(подстрока, клетка))

Где подстрока это текст, который вы хотите найти.

В качестве примера давайте проверим, содержит ли строка в A3 определенный цвет, скажем, красный:

=ISNUMBER(ПОИСК(«красный», A3))

Эта формула хорошо работает для одной ячейки. Но поскольку наша примерная таблица (см. ниже) содержит три разных цвета, написание отдельной формулы для каждого из них было бы пустой тратой времени. Вместо этого мы будем ссылаться на ячейку, содержащую интересующий цвет (B2).

=ISNUMBER(ПОИСК(B$2, $A3))

Чтобы формула корректно копировалась вниз и вправо, обязательно зафиксируйте следующие координаты знаком $:

  • В подстрока ссылку, заблокируйте строку (B$2), чтобы скопированные формулы всегда выбирали подстроки в строке 2. Ссылка на столбец является относительной, поскольку мы хотим, чтобы она корректировалась для каждого столбца, т. е. когда формула копируется в C3, ссылка на подстроку будет изменить на 2 канадских доллара.
  • в исходная ячейка ссылку, заблокируйте столбец ($A3), чтобы все формулы проверяли значения в столбце A.

На скриншоте ниже показан результат:
Использование формулы ISNUMBER SEARCH в Excel

ISNUMBER FIND — формула с учетом регистра

Так как функция ПОИСК без учета регистра, приведенная выше формула не различает прописные и строчные символы. Если вы ищете формулу с учетом регистра, используйте функцию НАЙТИ, а не ПОИСК.

IЧИСЛО(НАЙТИ(подстрока, клетка))

Для нашего примера набора данных формула будет иметь следующий вид:

=ЧИСЛО(НАЙТИ(B$2, $A3))

Как работает эта формула

Логика формулы вполне очевидна и проста для понимания:

  • Функция ПОИСК/НАЙТИ ищет подстроку в указанной ячейке. Если подстрока найдена, возвращается позиция первого символа. Если подстрока не найдена, функция выдает ошибку #ЗНАЧ! ошибка.
  • Функция ISNUMBER берет его оттуда и обрабатывает числовые позиции. Таким образом, если подстрока найдена и ее позиция возвращается в виде числа, ISNUMBER выводит TRUE. Если подстрока не найдена и #VALUE! возникает ошибка, ISNUMBER выводит FALSE.

ЕСЛИ ЕСЛИ ЕСЛИ ЧИСЛО формула

Если вы хотите получить формулу, которая выводит что-то отличное от ИСТИНА или ЛОЖЬ, используйте ЕСЛИЧИСЛО вместе с функцией ЕСЛИ.

Пример 1. Ячейка содержит какой текст

Продолжая предыдущий пример, предположим, что вы хотите пометить цвет каждого элемента знаком «x», как показано в таблице ниже.

Для этого просто оберните Формула ПОИСКА НОМЕРА в оператор ЕСЛИ:

=ЕСЛИ(ЧИСЛО(ПОИСК(B$2, $A3)), «x», «»)

Если ISNUMBER возвращает TRUE, функция ЕСЛИ выводит «x» (или любое другое значение, которое вы указываете для значение_если_истина аргумент). Если ISNUMBER возвращает FALSE, функция ЕСЛИ выводит пустую строку («»).
Формула ЕСЛИ ЕСЛИ НОМЕР, чтобы определить, какой текст содержит ячейка

Пример 2. Первый символ в ячейке — число или текст

Представьте, что вы работаете со списком буквенно-цифровых строк и хотите знать, является ли первый символ строки цифрой или буквой.

Чтобы построить такую ​​формулу, нам понадобятся 4 разные функции:

  • Функция LEFT извлекает первый символ из начала строки, скажем, в ячейке A2:

    ВЛЕВО(A2, 1)

  • Поскольку LEFT относится к категории текстовых функций, ее результатом всегда является текстовая строка, даже если она содержит только числа. Поэтому перед проверкой извлеченного символа нам нужно попробовать преобразовать его в число. Для этого используйте либо функцию ЗНАЧ, либо двойной унарный оператор:

    ЗНАЧЕНИЕ(ЛЕВО(A2, 1)) или (—ЛЕВО(A2, 1))

  • Функция ISNUMBER определяет, является ли извлеченный символ числовым или нет:

    IЧИСЛО(ЗНАЧЕНИЕ(ЛЕВО(A2, 1)))

  • В зависимости от результата ISNUMBER (ИСТИНА или ЛОЖЬ) функция ЕСЛИ возвращает «Число» или «Букву» соответственно.

Предполагая, что мы тестируем строку в A2, полная формула принимает следующий вид:

=ЕСЛИ(ЧИСЛО(ЗНАЧЕНИЕ(ЛЕВО(A2, 1))), «Число», «Буква»)

или же

=ЕСЛИ(ЧИСЛО(—ЛЕВО(A2, 1)), «Число», «Буква»)
IF ISNUMBER формула для проверки, является ли первый символ цифрой или буквой

Функция ISNUMBER также удобна для извлечения чисел из строки. Вот пример: Получить число из любой позиции в строке.

Проверить, не является ли значение числом

Хотя в Microsoft Excel есть специальная функция ISNONTEXT, позволяющая определить, не является ли значение ячейки текстом, аналогичная функция для чисел отсутствует.

Простое решение — использовать ISNUMBER в сочетании с NOT, которое возвращает противоположное логическому значению. Другими словами, когда ISNUMBER возвращает TRUE, NOT преобразует его в FALSE, и наоборот.

Чтобы увидеть его в действии, обратите внимание на результаты следующей формулы:

=НЕ(ЧИСЛО(A2))
Проверка, если значение не является числом

Другой подход заключается в совместном использовании функций ЕСЛИ и ЕСЛИЧИСЛО:

=ЕСЛИ(ЧИСЛО(A2), «», «Не число»)

Если A2 является числовым, формула ничего не возвращает (пустая строка). Если A2 не является числом, формула говорит об этом заранее: «Не число».
Формула ЕСЛИ ЕСЛИ ЧИСЛО, чтобы проверить, не является ли значение числом

Если вы хотите выполнить некоторые вычисления с числами, поместите уравнение или другую формулу в поле значение_если_истина аргумент вместо пустой строки. Например, приведенная ниже формула будет умножать числа на 10 и давать «Не число» для нечисловых значений:

=ЕСЛИ(ЧИСЛО(A2), A2*10, «Не число»)

Проверьте, содержит ли диапазон какое-либо число

В ситуации, когда вы хотите проверить весь диапазон чисел, используйте функцию ЕСЧИСЛО в сочетании с СУММПРОИЗВ следующим образом:

СУММПРОИЗВ(—ЧИСЛО(диапазон))>0

СУММПРОИЗВ(ЧИСЛО(диапазон)*1)>0

Например, чтобы узнать, содержит ли диапазон A2:A5 какое-либо числовое значение, формулы будут выглядеть следующим образом:

=СУММПРОИЗВ(—ЧИСЛО(A2:A5))>0

=СУММПРОИЗВ(ЧИСЛО(A2:A5)*1)>0
Проверка, содержит ли диапазон какое-либо число

Если вы хотите вывести «Да» и «Нет» вместо ИСТИНА и ЛОЖЬ, используйте оператор IF в качестве «оболочки» для приведенных выше формул. Например:

=ЕСЛИ(СУММПРОИЗВ(—ЧИСЛО(A2:A5))>0, «Да», «Нет»)
Расширенная формула для проверки того, содержит ли диапазон какое-либо число

Как работает эта формула

В основе формулы функция ЕЧИСЛО оценивает каждую ячейку указанного диапазона, скажем, B2:B5, и возвращает ИСТИНА для чисел и ЛОЖЬ для всего остального. Поскольку диапазон содержит 4 ячейки, массив имеет 4 элемента:

{ИСТИНА; ЛОЖЬ; ЛОЖЬ; ЛОЖЬ}

Операция умножения или двойной унарный (—) преобразует ИСТИНА и ЛОЖЬ в 1 и 0 соответственно:

{1;0;0;0}

Функция СУММПРОИЗВ складывает элементы массива. Если результат больше нуля, это означает, что в диапазоне есть хотя бы одно число. Итак, вы используете «> 0», чтобы получить окончательный результат ИСТИНА или ЛОЖЬ.

ISNUMBER в условном форматировании для выделения ячеек, содержащих определенный текст

Если вы хотите выделить ячейки или целые строки, содержащие определенный текст, создайте правило условного форматирования на основе ПОИСК ПО НОМЕРУ (без учета регистра) или НАЙТИ НОМЕР (с учетом регистра) формула.

В этом примере мы собираемся выделить строки на основе значения в столбце A. Точнее, мы выделим элементы, содержащие слово «красный». Вот как:

  1. Выберите все строки данных (в этом примере A2: C6) или только столбец, в котором вы хотите выделить ячейки.
  2. На Дом вкладка, в Стили группа, нажмите Новое правило > Используйте формулу, чтобы определить, какие ячейки нужно отформатировать.
  3. в Форматировать значения, где эта формула верна введите приведенную ниже формулу (обратите внимание, что координата столбца заблокирована знаком $):

    =ISNUMBER(ПОИСК(«красный», $A2))

  4. Нажмите на Формат кнопку и выберите нужный формат.
  5. Нажмите ОК дважды.

Если у вас мало опыта работы с условным форматированием Excel, вы можете найти подробные шаги со снимками экрана в этом руководстве: Как создать правило условного форматирования на основе формулы.

В результате подсвечиваются все элементы красного цвета:
Использование ISNUMBER в условном форматировании для выделения ячеек, содержащих определенный текст

Вместо «жесткого кодирования» цвета в правиле условного форматирования вы можете ввести его в предопределенную ячейку, скажем, E2, и ссылаться на эту ячейку в своей формуле (обратите внимание на абсолютную ссылку на ячейку $E$2). Кроме того, вам нужно проверить, не пуста ли ячейка ввода:

=И(ISNUMBER(ПОИСК($E$2, $A2)), $E$2<>«»)

В результате вы получите более гибкое правило, которое выделяет строки на основе вашего ввода в E2:
Использование ISNUMBER для выделения строк на основе значения ячейки

Вот как можно использовать функцию ЕЧИСЛО в Excel. Я благодарю вас за чтение и надеюсь увидеть вас в нашем блоге на следующей неделе!

Доступные загрузки

Примеры формулы ЕЧИСЛО в Excel

Вас также могут заинтересовать

Понравилась статья? Поделить с друзьями:
  • Is metonymy a word
  • Is learnings a correct word
  • Is not null function in excel
  • Is metadata one word
  • Is leafs a word plural