Home : Products : Hach WIMS : Hach WIMS Client : Documentation : Function Reference : Spread Functions : Primitive Functions : MID
Q11557 - INFO: MID

MID (Primitive Spread Function) returns the requested number of characters from a text string starting at the position you specify.

SYNTAX:

MID(Text, Start_num, Num_chars)

REMARKS:

Arguments are as follows:

Argument Description 
Text Text string containing the characters you want to extract. 
Start_num Position of the first character you want to extract in text. The first character in text has a Start_num value of 1. 
Num_chars Specifies how many characters to return from text. 


The Text argument can be a string, a formula that returns a string, or a reference to a cell containing a string.

Note the following about the Start_num argument:

  • If Start_num is greater than the length of text, MID returns "" (empty text).
  • If Start_num is less than the length of text, but Start_num plus Num_chars exceeds the length of text, MID returns the characters up to the end of text. 

EXAMPLES:

MID("wind surfing", 6, 20) equals surfing

Related Articles
Q11516 - INFO: CHAR
Q11547 - INFO: LEFT
Q11552 - INFO: LOWER
Q11576 - INFO: PROPER
Q11585 - INFO: RIGHT
Q11612 - INFO: UPPER

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 8/27/2008 9:55 AM.
Last Modified on 8/27/2008 9:55 AM.
Last Modified by No Author Name Available!.
Article has been viewed 2987 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article