Home > Common Problem > Function formula to extract birthday

Function formula to extract birthday

藏色散人
Release: 2019-10-25 12:01:36
Original
31315 people have browsed it

Function formula to extract birthday

1. The MID function is used to extract characters of a specified length from a string of text. Select a blank cell, enter the formula "=MID(B1,7,8)", and then go to step 6 to continue. If you are not familiar with this MID formula, or are worried about unexpected errors caused by manually entering the formula, it is recommended to follow the steps below.

2. Click "fx" on the input bar, enter "MID" in the search function box, and click "Go". Then you will see the MID function in the select function window, click it, and then Click OK.

Function formula to extract birthday

#3. The MID function has three parameters. The first parameter "Text" represents the text to be extracted. Click the small upward arrow on the right.

Function formula to extract birthday

#4. Then click on the first ID number cell, and then click on the small downward arrow.

Function formula to extract birthday

#5. The first parameter is now set. The second parameter indicates the text position to start extracting, and the third parameter indicates the length to be extracted. Since the 8 consecutive digits starting from the 7th digit of the ID number represent the birthday, enter "7" and "8" for the second parameter and the third parameter respectively.

Function formula to extract birthday

#6. In this way, the first birthday is extracted, and the other birthdays are automatically filled in downwards to complete the extraction.

Function formula to extract birthday

#7. Although the extracted data looks like a birthday, it is actually not in date format. Copy it, right-click and select "Paste Special" and paste as "Number".

48What should I do if the date format in Excel cannot be modified

Function formula to extract birthday

Function formula to extract birthday

8. Look, there is one before each birthday. A green inverted triangle indicates an error. Select the new value cell and click "Data" --> "Column".

Function formula to extract birthday

#9. Keep the default settings until this interface, set to "Date" format, and finally click "Finish".

Function formula to extract birthday

#10. In this way, the birthday is truly extracted.

Function formula to extract birthday

Recommended tutorial: excel tutorial

The above is the detailed content of Function formula to extract birthday. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
mid
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template