Home Topics excel How to determine gender using mod function

How to determine gender using mod function

May 11, 2020 am 10:24 AM
mod

How to determine gender using mod function

How to determine gender by mod function

The first step, everyone knows that the second to last digit on the ID card Parity determines people's gender, so. Before we use the excel function, we need to analyze its principle. Since we judge based on the penultimate digit, right, our first step is to take out the number, then judge the parity of the number, and finally use the if function To make logical judgments, let’s do it step by step.

Recommendation: "Excel Tutorial"

Enter the certificate number first. Before entering, please note that Change the cell format to text format,

How to determine gender using mod function

Use the interception string functions left(), right(), mid(), of course, the penultimate digit of the ID card is located In the middle of the string, so here we use the mid() function to extract characters.

How to determine gender using mod function

Use the mod() remainder function to determine parity. The divisor is 2. If the remainder If it is 0, it is an even number, and vice versa. Everyone knows this.

How to determine gender using mod function

Finally, use the if() function for logical judgment. Everyone knows how to use this. You can find out as shown below.

How to determine gender using mod function

The above is the detailed content of How to determine gender using mod function. For more information, please follow other related articles on the PHP Chinese website!

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

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to uninstall/delete MOD in OpenIV How to uninstall/delete MOD in OpenIV Feb 18, 2024 pm 04:25 PM

How to uninstall/delete MOD in OpenIV

Cyberpunk 2077 sees up to a 40% performance boost with new optimized path tracing mod Cyberpunk 2077 sees up to a 40% performance boost with new optimized path tracing mod Aug 10, 2024 pm 09:45 PM

Cyberpunk 2077 sees up to a 40% performance boost with new optimized path tracing mod

Rabbit R1 gets modded to run games, performs better than expected Rabbit R1 gets modded to run games, performs better than expected Jun 29, 2024 am 07:50 AM

Rabbit R1 gets modded to run games, performs better than expected

How to add mod to openiv How to add mod to openiv Feb 22, 2024 pm 09:54 PM

How to add mod to openiv

DIY Asus ROG Ally mod nearly doubles the battery capacity without leaving anything exposed DIY Asus ROG Ally mod nearly doubles the battery capacity without leaving anything exposed Aug 20, 2024 am 06:57 AM

DIY Asus ROG Ally mod nearly doubles the battery capacity without leaving anything exposed

'Phantom Beast Parlu' exceeded 1.58 million online at the same time! 'Pokémon' MOD is here! 'Phantom Beast Parlu' exceeded 1.58 million online at the same time! 'Pokémon' MOD is here! Jan 23, 2024 pm 06:06 PM

'Phantom Beast Parlu' exceeded 1.58 million online at the same time! 'Pokémon' MOD is here!

Use MySQL's MOD function to find the remainder of the modular operation Use MySQL's MOD function to find the remainder of the modular operation Jul 27, 2023 pm 04:48 PM

Use MySQL's MOD function to find the remainder of the modular operation

DIY mod fixes one big issue that plagued Super Nintendo for over 30 years DIY mod fixes one big issue that plagued Super Nintendo for over 30 years Jul 30, 2024 am 10:17 AM

DIY mod fixes one big issue that plagued Super Nintendo for over 30 years

See all articles