+ Reply to Thread
Results 1 to 8 of 8

Translate Any Digit present in the Cell

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    16

    Translate Any Digit present in the Cell

    Hi All,

    I am looking for an macro which will compare two columns only for digits and if result were equal than translate/replace those digits with respective language.

    Find: 1234567890
    Replace: १ २ ३ ४ ५ ६ ७ ८ ९ ०

    Column1 Column2 comparision result
    this is test 234 message. this is test 234 message.
    test 567 message. is test 567 message.
    Last edited by ShailShin; 05-21-2014 at 01:49 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Translate Any Digit present in the Cell

    Please show the expected result also


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    05-21-2014
    Posts
    16

    Re: Translate Any Digit present in the Cell

    Hi,
    Please find below output...

    Column1 Column2 comparision result
    this is test 234 message. this is test २३४ message. True
    test 567 message. is test ५६७ message. True
    test 890 message. is test ८९० message. False

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Translate Any Digit present in the Cell

    In C1 Cell

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,1,"१"),2,"२"),3,"३"),4,"४"),5,"५"),6,"६"),7,"७"),8,"८"),9,"९"),0,"०")=B1

    Drag it down...

  5. #5
    Registered User
    Join Date
    05-21-2014
    Posts
    16

    Re: Translate Any Digit present in the Cell

    Add this formula and got the result as false and true. However, it does not replace the column 2 digits with translated one.

    Thanks,
    Shailshin

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Translate Any Digit present in the Cell

    For translation using this part

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,1,"१"),2,"२"),3,"३"),4,"४"),5,"५"),6,"६"),7,"७"),8,"८"),9,"९"),0,"०")

  7. #7
    Registered User
    Join Date
    05-21-2014
    Posts
    16

    Re: Translate Any Digit present in the Cell

    Awesome! Works as per the requirement.

  8. #8
    Registered User
    Join Date
    05-21-2014
    Posts
    16

    [SOLVED] Re: Translate Any Digit present in the Cell

    Awesome! Works as per the requirement.

+ 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] Translate yes or no to digit and summarize in YTD sheet
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-23-2014, 06:42 PM
  2. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  3. Sample Translate English to Arabic Text Using MS Translate
    By pidyok in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2013, 08:18 AM
  4. [SOLVED] exl 2010 countif, criteria=final digit in string is not present in other characters
    By Madmortagan68 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2013, 05:45 PM
  5. Copy For Cell Values Present and not Formulas Present
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2009, 12:10 PM

Tags for this Thread

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