Share EncyclopediaHome EncyclopediaCategories Switch Channel

Excel extracts sex from id number, one key from sex

2026-02-20 05:06990NameNetworking

Hello, everyone. Here's the efficiency guide

When processing large amounts of data, we often need to extract information from id numbers, such as gender. The odd number of the 17th (second last) id number represents the male and even the female. Today, we will share several methods of extracting gender from excel based on id numbers。

1. Use the if function as if the id number were stored in column a, starting with column a2. Enter the following formula in b2 cells: =if (mod(a2,17,1), 2) = "1", "men", "women" , drag this formula down to apply to the whole column。

The law of id numbers

Ii. Enter the following formula in the b2 cell using text and choose: =choose (mod(mid(a2,17,1), 2)+1, "female", "male") to drag this formula down to apply to the whole column。

The law of id numbers

Iii. The use of conditional formats, while not directly extracting gender, can be used to highlight gender. Select the column containing the id number. Click the start tab to select the condition format. Select the new rule, and then choose " using formulae to determine the cells to set the format " . Enter a formula, e. G. = mod (mid(a1,17,1), 2) = "1", setting the format, e. G. Background colour, and then click ok。

The law of id numbers

The law of id numbers

Attention issues

A: check whether the id number is correctly entered and whether the formula is correctly applied。

A: ensure the accuracy and completeness of data, otherwise the formula may not be correctly implemented。

Concluding remarks

In these ways, you can easily extract gender information from the id number in excel. Getting these skills will make your data processing more efficient. If you have any questions or need any further help, please leave a message below and we will answer it as soon as possible。

We'll find out

Like 0
Report
Favorite 0
Tip 0
Comment 0
Share 3
MoreRelated Comments
No comments yet, be the first to comment
Activate the electromagnetic valve of the gas heater
As society evolves, most urban households use gas heaters. It is easy and fast to provide hot water at all times, and even in the winter it can be comfortable to bathe at home, wash its faces, wash its vegetables, cook, etc. And we all know that the electromagnetic valve is one of the most important components of the gas heater. The electromagnetic valves of the gas heater are mainly used to control the combustion of the gas heater. So what's the

0评论2026-08-13167

What's an infectious endometriosis
First page -cardiovascular disease -infective endocrinitis -what is the infective endocardia? RinWhat's an infectious endometriosisInfective endometriitis (infective endocarditis) is defined as the inflammation of the heart valve or inner membrane caused by direct infections of bacteria, fungi and other micro-organisms (e. G. Viruses, ricksels, chlamydia, spirals, etc.), as distinct from non-infective endometriitis due to rheumatism, rheumatism,

0评论2026-08-13140