+ Reply to Thread
Results 1 to 12 of 12

Removing Chinese characters from certain rows in a column

Hybrid View

  1. #1
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Removing Chinese characters from certain rows in a column

    I have a column (Column A) which contains Chinese characters in some rows. I want to get rid off them. Although I can do it manually, but sometimes there are a few hundreds rows containing the Chinese words. So it becomes tedious. I tried searching for codes that can help but so far those that I found do not seem to work. I have attached a sample file. I would appreciate it very much if someone can help me with coding to simplify the removal of the Chinese words only, leaving numbers and English words alone. Thank you.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Removing Chinese characters from certain rows in a column

    Hi,

    I don't know of a way to target a remove such characters.
    I would add a helper column and enter sequential numbers starting with 1.
    Then put a filter on the columns, and sort column A, A to Z. Manually delete the large sections of characters.
    Use your helper column to put your original data back in order.

    See attached modification of your data.

    Hope this is helpful.

    Cheers
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Re: Removing Chinese characters from certain rows in a column

    Thank you for the suggestion. I'll give it a try.

  4. #4
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Re: Removing Chinese characters from certain rows in a column

    I was able to sort Column A and did the removal of the Chinese characters and then using the helper column (Column B) to return the data to their original order. However, when I use the same method as you described on my actual data, I was able to sort Column A data from A to Z but the numbers in Column B (helper column) remain in their order. They didn't follow the data in Column A. So I'm unable to sort back to their original order again. Am I missing in doing something? Please let me know how the make the helper column numbers sort together with the data in Column A.
    Thank you.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Removing Chinese characters from certain rows in a column

    you need vba micro code.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Chinese characters from certain rows in a column

    Enter formula in C1 and copy down
    Formula: copy to clipboard
    =IFERROR(CODE(A1),"")

    Then enter array formula in B1 and copy down
    Formula: copy to clipboard
    =IFERROR(INDEX(A:A,SMALL(IF(($C$1:$C$33<>63)*($C$1:$C$33<>""),ROW($A$1:$A$33)),ROWS(A$1:A1))),"")

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Re: Removing Chinese characters from certain rows in a column

    Thank you very much for the formulas. They work great. However the resulting data have every line filled. I need a blank row before every number, except the number 1. That is, before 2, there should be a blank row, another one before 3, and so on. Is there a way of inserting these blank rows automatically? I found some macros which insert blank rows at regular intervals but they can't work on the data on my worksheets. Somehow, the regular inserting of blank rows do not appear at the right places, that is, before each number. If you can help me with this, that would be great.

  8. #8
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Removing Chinese characters from certain rows in a column

    Hi,

    Yes, you are missing a step.
    Before you sort, you have to make sure you header cells, in this case should be A1 and B1 are set as filter headers.
    To do this, select A1, under the Data ribbon/menu select Filter. This will set up A1 and B1 as your filter sets.

    Cheers

  9. #9
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Re: Removing Chinese characters from certain rows in a column

    Thank you very much. I can do it now.

  10. #10
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Removing Chinese characters from certain rows in a column

    I am glad to hear and glad that I could be of some assistance.

    Cheers

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Chinese characters from certain rows in a column

    So, if I understood you correctly, you want in Col B the same layout as Col A but with Chinese characters line to be blank.
    Enter this short formula in B1 and copy down.
    Formula: copy to clipboard
    =IF(OR(C1={63,""}),"",A1)

  12. #12
    Registered User
    Join Date
    10-06-2012
    Location
    Singapore
    MS-Off Ver
    Excel 365
    Posts
    50

    Re: Removing Chinese characters from certain rows in a column

    Thank you, AlKey. Sorry that I didn't make my request clearer. Blank rows are now inserted above each number but I would want the rows occupied by the Chinese characters to be removed. Can your formula be changed to accommodate that? Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] DELETE ROWS WITH FOREIGN CHARACTERS/Words (e.g Chinese & Arabic)
    By thalyn_yang in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2016, 06:13 AM
  2. Trouble with Chinese Characters
    By Nikhilgupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2013, 03:52 AM
  3. Read Chinese Characters From VBA
    By abhinavsaxena24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2013, 04:03 AM
  4. Removing Chinese Characters from a spreadsheet
    By karug in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2009, 09:51 PM
  5. Chinese characters in linked spreadsheets
    By Zennish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2008, 03:59 PM
  6. Removing Chinese Characters from a spreadsheet
    By heyjay in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2007, 04:51 AM
  7. [SOLVED] Chinese characters
    By lazyboy in forum Excel General
    Replies: 0
    Last Post: 03-15-2005, 01:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1