Pages

Showing posts with label Mid Function. Show all posts
Showing posts with label Mid Function. Show all posts

Wednesday, May 28, 2014

USE THE TEXT FUNCTION TO EXTRACT DATE PARTS - DATE AND TIME FUNCTIONS - MICROSOFT EXCEL

USE THE TEXT FUNCTION TO EXTRACT DATE PARTS USING MICROSOFT EXCEL

A worksheet contains date values in column A as text that cannot be interpreted by Excel as date values. As in the previous example, the text has to be extracted, but the result should be specially formatted as shown in the screenshot below.

To extract, combine, and show specially formatted date:

1. Select cells B2:B10 and type the following formula: =TEXT(DATE(RIGHT(A2,4),MID(A2,3,2),MID(A2,1,2)),"YYYY-MM-DD").
2. Press <-Ctrl+Enter->.

USE THE TEXT FUNCTION TO EXTRACT DATE PARTS USING MICROSOFT EXCEL
Note: First, transfer the last four digits with the RIGHT function. Then use the MID function twice to get the two digits for month and day. With the TEXT function the date can be formatted individually.

Watch the Video Tutorial - https://www.youtube.com/watch?v=5kvFLr2MjqI

 

Thursday, November 10, 2011

Use the LEFT, MID, and RIGHT functions to extract date parts - Date and Time Functions - Microsoft Excel


Use the LEFT, MID, and RIGHT functions to extract date parts using Microsoft Excel

The Microsoft Excel worksheet in Figure 4-8 contains date values in column A. Excel cannot interpret these values as dates. To show the date in a correct format, the values of column A have to be extracted to year, month, and day. 

To extract, combine, and display the correct format:

1. Select cells B2:B10 and type the following formula: =DATE(LEFT(A2,4),MID(A2,FIND(".",A2,1)+1,2), RIGHT(A2,2)).
2. Press <-Ctrl+Enter->.









Note: The first four digits have to be transferred with the LEFT function. Then use the FIND function to detect the decimal point. On the right of the first decimal point (+1), two digits are interpreted as the month using the MID function. On the right side of the second decimal point, use the RIGHT function to extract two digits as the day value.

Watch the Video Tutorial - https://www.youtube.com/watch?v=rtM-0fLt5o4

Submit Site to Google Free Articles Search Engine Submission - AddMe Directories Suggest Link Business Directory AutoBackLinks Directory Bingo Bahia Submission Software Reviews