PrecisionCalc
inspector
text
Do Anything with Text in Formulas

 

itEXTRACTNUM

Retrieves numeric and other desired characters from text, detecting the local decimal symbol, negative numbers, and exponential notation.

 

Decimal:

Negative Numbers:

Exponential Notation:

 

Syntax

itEXTRACTNUM(text,extract_list...)

text Required. The text from which to extract numeric and other desired characters.

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

extractlist... Optional. The list of characters and/or text strings to extract from text (in addition to numeric characters, which are extracted by default). Accepts up to 29 numlist arguments.

 

Examples

Formula Description Result
=itEXTRACTNUM("12abc34") Extract numeric characters from "12abc34" 1234
=itEXTRACTNUM("1-a2~b.c%3d)&(e@f4") Extract numeric characters from "1-a2~b.c%3d)&(e@f4" 12.34
=itEXTRACTNUM("-1(2)abc.34") Extract numeric characters from "-1(2)abc.34" -12.34
=itEXTRACTNUM("E+~a-!1b@E.c#2d$Ef%-g^5h&E+") Extract numeric characters from "E+~a-!1b@E.c#2d$Ef%-g^5h&E+" -1.2E-5
=itEXTRACTNUM("x1.2E5") Extract numeric characters from "x1.2E5". Note, the "E" is not followed by a "+" or "-". 1.25
=itEXTRACTNUM(SUBSTITUTE("x1.2E5","E","E+")) Change all occurrences of "E" in "x1.2E5" to "E+", then extract numeric characters. 1.2E+5
=itEXTRACTNUM("1.2abc34","a") Extract numeric characters, and also extract "a", from "1.2abc34" 1.2a34
=itEXTRACTNUM(A1:B2)
 
  A B
1 12abcde34 b
2 a c
Extract numeric characters, and also extract 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 12abc34

See Also

itEXCLUDE
itEXCLUDENOTNUM
itEXTRACT

 

 

PrecisionCalc Home Page