+ Reply to Thread
Results 1 to 7 of 7

Numeric number conversion from English to Bangla by excel macro

  1. #1
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Numeric number conversion from English to Bangla by excel macro

    Dear all, How to convert English numbers to Bangla numbers by excel macro/formula

    I have Input value in CELL A1 like below:

    CELL A1: 1 2 3 4 5 6 7 8 9 0

    I want to get the output like below:

    CELL B1: ১ ২ ৩ ৪ ৫ ৬ ৭ ৮ ৯ ০

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hi ! Try this ‼


    As a beginner starter :

    PHP Code: 
    Sub Demo1()
        
    Dim S$, C&, A&, B$
            
    = [A1].Text
        
    For 1 To Len(S)
                
    AscW(Mid(SC))
            
    Select Case A
                   
    Case 48 To 57:   ChrW(2486 A)
                   Case Else:       
    ChrW(A)
            
    End Select
        Next
            
    [B1].Value B
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  3. #3
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Numeric number conversion from English to Bangla by excel macro

    Hi Marc L ,
    Yes it works perfectly , I appreciated it, would you please implement one more logic so that all English numeric numbers in the CELL A range converted to Bangla number in the CELL B range till last non empty CELL. I mean if CELL A2 have English number it also converted to Bangla number in the CELL B2 as well. Likewise onward ..thanks

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Numeric number conversion from English to Bangla by excel macro


    As it was not stated within initial post (neither any attachment), you can use a For Each loop on first row …

  5. #5
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Numeric number conversion from English to Bangla by excel macro

    Hi Marc L , Please the attached excel file.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Try this !


    According to your attachment :

    PHP Code: 
    Sub Demo2()
            
    Dim VR&, C&, A&
        
    With Range("A2", [A1].End(xlDown))
                
    = .Value
            
    For 1 To UBound(V)
                For 
    1 To Len(V(R1))
                                
    AscW(Mid(V(R1), C1))
                    
    Select Case A
                        
    Case 48 To 57:   Mid(V(R1), C1) = ChrW(2486 A)
                    
    End Select
                Next
            Next
                
    .Offset(, 1).Value V
        End With
    End Sub 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 06-11-2018 at 05:58 PM. Reason: optimization …

  7. #7
    Forum Contributor
    Join Date
    06-08-2012
    Location
    BD
    MS-Off Ver
    Microsoft Office 2016
    Posts
    633

    Re: Numeric number conversion from English to Bangla by excel macro

    Hi Marc L , I truly appreciated it , thanks for your valuable time in this regards.

+ 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. English Word to Numeric digit conversion of numbers- How to do it?
    By Dipyaman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2013, 06:29 PM
  2. Conversion of a Number into English Text
    By Nasir Ali in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. Conversion of a Number into English Text
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 11:05 AM
  4. [SOLVED] Conversion of a Number into English Text
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. Conversion of a Number into English Text
    By Nasir Ali in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. Conversion of a Number into English Text
    By Nasir Ali in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Conversion of a Number into English Text
    By Nasir Ali in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] Conversion of a Number into English Text
    By Nasir Ali in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2005, 04:05 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