Separating Chinese and English Description into 2 cells

Satoshi

New Member
Joined
Feb 1, 2018
Messages
1
Hello,

I have an inventory list of items, that combines both chinese and english descriptions into it.
Is there anyway I can separate them using formulas?

The ??? are the chinese characters which may appear before or after then english description.

Thank you

Sheet1

ABCD
1
2Material DescriptionSpecificationsEnglish DescriptionChinese Description
3????????
Low voltage reactive compensation device
G68
4?????
Power distribution box
X94
5?????
Power distribution box
X56
6Electrical cables ????Y95
7Electrical cables ????Y72
8Electrical cables ????Y30
9Electrical cables ????Y90
10???
Sheath line
B53
11??
yarn
R63
12?????
Single stranded aluminum strand
B34
13????
Communication cable
M2
14???? Local fan blower 556
15???? Local fan blower 149
16?? Wind belt?23
17?? Wind belt?35
18???? Wind belt adjusting53
19??? Blaster2100
20?? Air pickG24
21???? Air pick drillG71
22?? Anchor bolt?99
23??? rubber padF72
24??? Check back cushionF12
25??? Ratchet wheel handY2
26?? TriggerY22
27???? Chuck boltY10
28??? Guide sleeveY78
29?? ChuckY35
30

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:353.6px;"><col style="width:260.8px;"><col style="width:174.4px;"><col style="width:348.8px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
What I can dream up, using built-in Excel functions, are monsters in length.

I can offer these two User Defined Functions:

Code:
Function TrimNonLatin(txt) As String
''''
' Removes all characters U+0370 and higher from txt.
''''
    Dim glyph As String
    Dim i As Long
    
    For i = 1 To Len(txt)
        glyph = Mid(txt, i, 1)
        If glyph < ChrW(&H370) Then
            TrimNonLatin = TrimNonLatin & glyph
        End If
    Next i
End Function
''''


Function TrimLatin(txt) As String
''''
' Removes all characters U+036F and below from txt.
''''
    Dim glyph As String
    Dim i As Long
    
    For i = 1 To Len(txt)
        glyph = Mid(txt, i, 1)
        If glyph > ChrW(&H36F) Then
            TrimLatin = TrimLatin & glyph
        End If
    Next i
End Function

To create a user defined function:
  1. While in a copy of the workbook where you want to add the function, press Alt+F11. The visual basic editor should open.
  2. From the editor menu, select Insert > Module.
  3. Copy and paste the code above into the module.
Save the file in a macro-enabled format, either as an xlsm or xlsb format file.

To use:
In C3, enter =TrimNonLatin(A3) and copy downward.
In D3, enter =TrimLatin(A3) and copy downward.

Notes:
These functions are not perfect. Trailing and leading spaces may remain in the resulting strings. The Chinese results string may contain Chinese parentheses and commas that were embedded within the Latin portion of the source string.

Here's an example string taken from the Chinese language Wikipedia:

A3並另外命名為東亞編碼字符(East Asia Coded Character,EACC,ANSI/NISO Z39.64)
C3East Asia Coded CharacterEACCANSI/NISO Z39.64
D3並另外命名為東亞編碼字符(,,)

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top