The MID Function
The MID Function
The syntax for the MID function is:
= MID ( Number , Start_num , Num_chars )
Number - the piece of data you want to change.
This can be a cell reference indicating where the data is stored.
Start_num - specifies the starting character from the left of the data to be kept.
Num_chars - specifies the number of characters to the right of the Start_num to be retained.
Example Using Excel's MID Function:
Note: For help with this example, see the image to the right.
1. Enter the following data into cell C1: #687 miles
2. Click on cell D1 in the spreadsheet - this is where the function will be
located.
3. Click on the Formulas tab of the ribbon menu.
4. Choose Text from the ribbon to open the function drop down list.
5. Click on MID in the list to bring up the function's dialog box.
6. In the dialog box, click on the Number line.
7. Click on cell C1 in the spreadsheet.
8. Click on the Start_num line.
9. Enter the number 2 on this line since we don't want to keep the first character
on the left.
10. Click on the Num_chars line.
11. Enter the number 3 on this line since we only want to keep three characters of
data (the number 687).
12. Click OK.
13. The number 687 should appear in cell D1.
14. When you click on cell D1 the complete function = MID ( D1,3 ) appears in the
formula bar above the worksheet.
Hope it is clear.........
The syntax for the MID function is:
= MID ( Number , Start_num , Num_chars )
Number - the piece of data you want to change.
This can be a cell reference indicating where the data is stored.
Start_num - specifies the starting character from the left of the data to be kept.
Num_chars - specifies the number of characters to the right of the Start_num to be retained.
Example Using Excel's MID Function:
Note: For help with this example, see the image to the right.
1. Enter the following data into cell C1: #687 miles
2. Click on cell D1 in the spreadsheet - this is where the function will be
located.
3. Click on the Formulas tab of the ribbon menu.
4. Choose Text from the ribbon to open the function drop down list.
5. Click on MID in the list to bring up the function's dialog box.
6. In the dialog box, click on the Number line.
7. Click on cell C1 in the spreadsheet.
8. Click on the Start_num line.
9. Enter the number 2 on this line since we don't want to keep the first character
on the left.
10. Click on the Num_chars line.
11. Enter the number 3 on this line since we only want to keep three characters of
data (the number 687).
12. Click OK.
13. The number 687 should appear in cell D1.
14. When you click on cell D1 the complete function = MID ( D1,3 ) appears in the
formula bar above the worksheet.
Hope it is clear.........
Comments
Post a Comment