Check ID Cards With An Excel Function
Check ID Cards With An Excel Function
Figure
Figure11AAsheet
sheetneed
needto
tobe
bechecked
checked
Numbers
Numbers extracted
extracted from
from the
the MIDMID function
function require
require weighted
weighted
2. HOW TO CHECK sum
sum (the
(the weighted
weighted number
number is
is shown
shown in
in Figure
Figure 4),
4), and
and the
the
2. HOW TO CHECK expression can be written as:
expression can be written as:
=MID(D3,1,1)*7+MID(D3,2,1)*9+MID(D3,3,1)*10+MID(
=MID(D3,1,1)*7+MID(D3,2,1)*9+MID(D3,3,1)*10+MID(
D3,4,1)*5+MID(D3,5,1)*8+MID(D3,6,1)*4+MID(D3,7,1)*
D3,4,1)*5+MID(D3,5,1)*8+MID(D3,6,1)*4+MID(D3,7,1)*
2.1.
2.1. Weighted
WeightedSum Sum 2+MID(D3,8,1)*1+MID(D3,9,1)*6+MID(D3,10,1)*3+MID
2+MID(D3,8,1)*1+MID(D3,9,1)*6+MID(D3,10,1)*3+MID
(D3,11,1)*7+MID(D3,12,1)*9+MID(D3,13,1)*10+MID(D3,
(D3,11,1)*7+MID(D3,12,1)*9+MID(D3,13,1)*10+MID(D3,
The first thing you need to extract is the first 17 digits
The first thing you need to extract is the first 17 digits of of
14,1)*5+MID(D3,15,1)*8+MID(D3,16,1)*4+MID(D3,17,1)
14,1)*5+MID(D3,15,1)*8+MID(D3,16,1)*4+MID(D3,17,1)
your ID number, which can be done with the MID function:
your ID number, which can be done with the MID function: *2
*2
MID(text, start_num, num_chars): Returns characters
MID(text, start_num, num_chars): Returns characters of a of a
Enter
Enter the
the expression
expression in in the
the "Id"Id number
number verification"
verification" cell,
cell,
specified length from the starting position specified
specified length from the starting position specified in thein the
which
which isisE3
E3 cell.
cell.The
The result
resultisisshown
shown in
in Figure
Figure 2.2.
text string.
text string.
=MOD(MID(D3,1,1)*7+MID(D3,2,1)*9+MID(D3,3,1)*10+ D(D3,14,1)*5+MID(D3,15,1)*8+MID(D3,16,1)*4+MID(D3,
MID(D3,4,1)*5+MID(D3,5,1)*8+MID(D3,6,1)*4+MID(D3, 17,1)*2,11)
7,1)*2+MID(D3,8,1)*1+MID(D3,9,1)*6+MID(D3,10,1)*3+ The result is shown in Figure 3.
MID(D3,11,1)*7+MID(D3,12,1)*9+MID(D3,13,1)*10+MI
252
Advances in Social Science, Education and Humanities Research, volume 428
=EXACT(MID(D3,18,1),VLOOKUP(MOD(MID(D3,1,1)*7 D(D3,12,1)*9+MID(D3,13,1)*10+MID(D3,14,1)*5+MID(D
+MID(D3,2,1)*9+MID(D3,3,1)*10+MID(D3,4,1)*5+MID( 3,15,1)*8+MID(D3,16,1)*4+MID(D3,17,1)*2,11), Check
D3,5,1)*8+MID(D3,6,1)*4+MID(D3,7,1)*2+MID(D3,8,1)* Data!$D$2:$E$12,2,0))
1+MID(D3,9,1)*6+MID(D3,10,1)*3+MID(D3,11,1)*7+MI The result is shown in Figure 6.
3. CONCLUSION
Identity cards are very important to everyone. Whether the
authentication is successful or not, the channels of
identification card numbers are usually charged, such as
bank channels and Ministry of Public Security channels.
Before sending validation to these channels, validating them
first can improve the success rate of charging validation and
save cost. It can also improve the user experience, feedback
in time when users input errors without waiting for the return
of validation channel results. Relying on Excel software, this
paper mainly uses Excel function to realize the verification
function. It is easy to operate and difficult to realize. I hope
it can inspire everyone's work and study.
REFERENCES
[1] Xiao Yunting, “Computer Application Foundation”,
Beijing: Machinery Industry Press.
[2] Li Jibing. “Excel Formula and Function Application
Example”, Beijing: China Youth Publishing House.
253