Hello, welcome toPeanut Shell Foreign Trade Network B2B Free Information Publishing Platform!
18951535724
  • Excel extracts sex from id number, one key from sex

       2026-02-20 NetworkingName920
    Key Point:Hello, everyone. Here's the efficiency guideWhen 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 follow

    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

     
    ReportFavorite 0Tip 0Comment 0
    >Related Comments
    No comments yet, be the first to comment
    >SimilarEncyclopedia
    Featured Images
    RecommendedEncyclopedia