当前位置:网站首页>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
边栏推荐
- Notes on non replacement elements in the line (padding, margin, and border)
- Vue uses keep alive to cache page optimization projects
- Reading and writing of nodejs excel (.Xlsx) files
- Understand JS high-order function and write a high-order function
- Edge loss 解读
- Enhanced paste quill editor
- Array: force deduction dichotomy
- Native JS high risk reminder pop-up code snippet, "are you sure you want to do this?" and "it cannot be recovered after deletion. Do you want to continue“
- Detailed summary of float
- TeeChart Pro ActiveX 2022.1
猜你喜欢

Use of pytorch tensorboard

BUUCTF(web:1-50)

A review of small sample learning

Svg code snippet of loading animation

The construction and usage of wampserver framework

TeeChart Pro ActiveX 2022.1

Code learning-cvpr2020 unsupervised domain adaptive semantic segmentation: intra advance

Uva1103 ancient pictograph recognition

Design of IM login server and message server

Detailed summary of flex layout
随机推荐
The k-th node of the binary search tree [sword finger offer]
About the definition of pointer variables (personal notes)
SSRF-lab
Route parameters to jump to the page and transfer parameters -- > hidden parameter list
Mobile number regular expression input box loses focus verification
The construction and usage of wampserver framework
Abuse unlimited authorization -- is your address safe?
Voxel based and second network learning
February 19 CTF exercise
3.2.3 use tcpdump to observe TCP header information (supplement common knowledge of TCP protocol)
A brief talk on media inquiry
Create an environment for new projects
Customize the console plot result style
Detailed summary of position positioning
IronOCR 2022.1 Crack
Deep learning non local neural networks
Pytorch- daily learning notes of some small functions involving training
Visual studio 2022 interface beautification tutorial
Array introduction plus example 01
Use serialize in egg to read and write split tables