Manuals/calci/MID

Revision as of 20:39, 24 October 2013 by MassBot1 (talk | contribs) (Created page with "<div id="6SpaceContent" class="zcontent" align="left"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">'''MID'''</font></font></font><font color="#48484...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

MID(txt,snum,noc)

where txt is the text string containing the characters that want to extract and snum   is the position of the first character that want to extract in text and noc is the number of characters.


MID calculates a specific number of characters from a text string, starting at the position that specify, based on the number of characters that specify.

Note  MID works with languages that use the single-byte character set (SBCS),


When snum is greater than the length of text, MID displays 0.

MID displays 0 ,when snum is less than the length of text, but snum plus noc exceeds the length of text.

MID displays 0 when snum is less than 1.

When noc is negative, MID displays 0.


MID


let’s see an example in (Column1 Row 1)

Column1Row1 = Thermal Energy

=MID(C1R1,9,14) is Energy

[javascript:ToggleDiv('divExpCollAsst_4') ///rly =MID(C1R1,2,4) is her]


Syntax

Remarks

Examples

Description

Column1 Column2 Column3 Column4
Row1 Thermal Energy Energy her
Row2 0
Row3
Row4
Row5
Row6