PrecisionCalc
inspector
text
Do Anything with Text in Formulas

 

itEXCLUDENOTNUM

Excludes non-numeric and other undesired characters and/or digits from text, detecting the local decimal symbol, negative numbers, and exponential notation.

 

Decimal:

Negative Numbers:

Exponential Notation:

 

Syntax

itEXCLUDENOTNUM(text,exclude_list...)

text Required. The number or text from which to exclude non-numeric and other characters and/or digits.

num does not appear in Microsoft Excel's 'Insert Function' dialog. Instead, the first numlist argument is considered the num argument. If the first numlist argument is a range of cells, then the upper-left cell is considered the num argument.

exclude_list... Optional. The list of characters, text strings, and/or digits to exclude from num (in addition to non-numeric characters, which are excluded by default). Accepts up to 29 numlist arguments, or up to 28 if the optional format argument is used.

 

Examples

Formula Description Result
=itEXCLUDENOTNUM("12abc34") Exclude non-numeric characters from "12abc34" 1234
=itEXCLUDENOTNUM("1-a2~b.c%3d)&(e@f4") Exclude non-numeric characters from "1-a2~b.c%3d)&(e@f4" 12.34
=itEXCLUDENOTNUM("-1(2)abc.34") Exclude non-numeric characters from "-1(2)abc.34" -12.34
=itEXCLUDENOTNUM("E+~a-!1b@E.c#2d$Ef%-g^5h&E+") Exclude non-numeric characters from "E+~a-!1b@E.c#2d$Ef%-g^5h&E+" -1.2E-5
=itEXCLUDENOTNUM("x1.2E5") Exclude non-numeric characters from "x1.2E5". Note, the "E" is not followed by a "+" or "-". 1.25
=itEXCLUDENOTNUM(SUBSTITUTE("x1.2E5","E","E+")) Change all occurrences of "E" in "x1.2E5" to "E+", then exclude non-numeric characters. 1.2E+5
=itEXCLUDENOTNUM("1.2abc34",".") Exclude non-numeric characters, and also exclude ".", from "1.2abc34" 1234
=itEXCLUDENOTNUM(A1:B2)
 
  A B
1 12abc34 2
2 1 3
Exclude non-numeric characters, and also exclude values in cells A1:B2 (except A1, because the first argument is a range and A1 is the upper-left corner of the range) from the value in cell A1 4

See Also

itEXCLUDE
itEXTRACT
itEXTRACTNUM

 

 

PrecisionCalc Home Page