当前位置:网站首页>Get the first letter of Chinese phonetic alphabet in Excel and capitalize it
Get the first letter of Chinese phonetic alphabet in Excel and capitalize it
2022-06-25 05:31:00 【qq_ forty-one million five hundred and fifty-four thousand six 】
Final effect 
If the cell is entered =getpychar(E2), And drop-down fill , What you get is an uppercase initial
- open 【 development tool 】 menu , Click on the first 【Visual
Basic】, The code window pops up , In the left margin of the window , Click on the right , choice 【 Insert 】->【 modular 】. A white background box appears on the right side of the window . - Copy and paste the following code into the edit box , And save
Function getpychar(char)
tmp = 65536 + Asc(char)
If (tmp >= 45217 And tmp <= 45252) Then
getpychar = "A"
ElseIf (tmp >= 45253 And tmp <= 45760) Then
getpychar = "B"
ElseIf (tmp >= 45761 And tmp <= 46317) Then
getpychar = "C"
ElseIf (tmp >= 46318 And tmp <= 46825) Then
getpychar = "D"
ElseIf (tmp >= 46826 And tmp <= 47009) Then
getpychar = "E"
ElseIf (tmp >= 47010 And tmp <= 47296) Then
getpychar = "F"
ElseIf (tmp >= 47297 And tmp <= 47613) Then
getpychar = "G"
ElseIf (tmp >= 47614 And tmp <= 48118) Then
getpychar = "H"
ElseIf (tmp >= 48119 And tmp <= 49061) Then
getpychar = "J"
ElseIf (tmp >= 49062 And tmp <= 49323) Then
getpychar = "K"
ElseIf (tmp >= 49324 And tmp <= 49895) Then
getpychar = "L"
ElseIf (tmp >= 49896 And tmp <= 50370) Then
getpychar = "M"
ElseIf (tmp >= 50371 And tmp <= 50613) Then
getpychar = "N"
ElseIf (tmp >= 50614 And tmp <= 50621) Then
getpychar = "O"
ElseIf (tmp >= 50622 And tmp <= 50905) Then
getpychar = "P"
ElseIf (tmp >= 50906 And tmp <= 51386) Then
getpychar = "Q"
ElseIf (tmp >= 51387 And tmp <= 51445) Then
getpychar = "R"
ElseIf (tmp >= 51446 And tmp <= 52217) Then
getpychar = "S"
ElseIf (tmp >= 52218 And tmp <= 52697) Then
getpychar = "T"
ElseIf (tmp >= 52698 And tmp <= 52979) Then
getpychar = "W"
ElseIf (tmp >= 52980 And tmp <= 53640) Then
getpychar = "X"
ElseIf (tmp >= 53679 And tmp <= 54480) Then
getpychar = "Y"
ElseIf (tmp >= 54481 And tmp <= 62289) Then
getpychar = "Z"
Else ' If it's not Chinese , Do not deal with
getpychar = char
End If
End Function
' One by one ASC code
Function getpy(str)
For i = 1 To Len(str)
getpy = getpy & getpychar(Mid(str, i, 1))
Next i
End Function
- Click on the menu 【 preservation 】, Pop up a prompt box , spot 【 yes 】, A prompt box pops up again , spot 【 determine 】.
- go back to excel file , Just like other functions , Enter... In the cell = The name of the function ( Cell ) You can enter.
- getpychar The function is to get only the uppercase initials ,getpy To get the full spelling of the capital initial
边栏推荐
- Using JS to realize the sidebar of life information network
- Voxel based and second network learning
- Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation
- 滲透測試-提權專題
- "APEC industry +" biov Tech talks about the cross-border of Chinese biotechnology enterprises and "Pratt & Whitney Kangyu" | apec-hub public welfare
- A summary of the experiment of continue and break in C language
- [Huawei machine test] hj16 shopping list
- Professional things use professional people
- CTFHUB SSRF
- Example of dynamic programming 3 leetcode 55
猜你喜欢

2022.1.25

CSRF (Cross Site Request Forgery) &ssrf (server request forgery) (IV)

February 20ctf record

ERDAS 9.2 installation tutorial

Monkey test of APP automation

TX Text Control 30.0 ActiveX

IronOCR 2022.1 Crack

CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati

C language - minesweeping

Create an environment for new projects
随机推荐
Transformations of pytorch torch torch vision
Array and simple function encapsulation cases
Handwritten promise all
Creation and use of MySQL index
Personalized Federated Learning with Moreau Envelopes
Depth of binary tree
Semantic segmentation cvpr2020 unsupervised intra domain adaptation for semantic segmentation through self supervision
What happens when you use "-fno exceptions", "new T"- With “-fno-exceptions”, what happens with “new T”?
Svg code snippet of loading animation
Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation
CUDA compilation error
1.6.3 use tcpdump to observe DNS communication process
XSS (cross site script attack) summary (II)
Two dimensional array and function call cases of C language
HR took the initiative to raise the salary of the test lady. How did she do it?
H5 native player [learn video]
DOM document object model (I)
电子协会 C语言 1级 28 、字符菱形
滲透測試-提權專題
Design of IM login server and message server