+ Reply to Thread
Results 1 to 11 of 11

Macro to convert Number Stored as Text and Format in appropriate Currency Formats

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Dear AlphaFrog

    Thanks for all your time and help.
    Post marked SOLVED. Rep added.
    Attached Files Attached Files
    Last edited by sameer79; 10-12-2020 at 04:06 PM.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,314

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Will there be "ONLY" these 3 currencies, or "it may happen" that there will also be others ?

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Hi there,
    Thank you so much. Works great.
    If you could just tweak the code a bit to add few more things please.
    See the sample attached
    I have added the Ex Rates in Row 1 for US$, Euro and IND.
    These cells will be fixed always displaying the Rates.

    The exchange rates for US $ and Euro would change and that is the reason I want it be multiplied so when I change the Rate the values under Heading 8 will change accordingly.

    Is it possible to get the values against each value under Heading5 multiplied by the Ex Rate according to the Number format and put the values under Col H.
    I have done some manual multiplication and colored them for explanation purposes.
    Blanks would be shown blanks
    Hope you will help me.
    Thanks once again for all your time and support.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Dear Porucha,
    Currently we have only these 3 currencies

    Thanks

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Run this on text data in column E that has not yet been converted.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Dear AlphaFrog,
    Thanks a load for the revised code.
    One small problem. When I run the code it replace the value in Cell H1 with =$E1*$M$1.
    I am typing the old value back.
    Just thought to update you.
    Once again thanks for all the time and help.

  8. #8
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Dear Alpha Frog,
    Thanks for the excel lend code you gave me.
    One small problem I am facing now.
    I want all the output under Col H to show IND instead of Euro and $.
    Can you please amend it. Rest everything is fine.
    Thanks once again for your time and help.

  10. #10
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    I'm not familiar with Indian currency formatting. I know there is a difference in number grouping.

    Perhaps this would help...
    https://chandoo.org/wp/indian-currency-format-excel/

    Change the .NumberFormat = "$#,##0.00_);[Red]($#,##0.00)" to suit.

  11. #11
    Registered User
    Join Date
    11-07-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    84

    Re: Macro to convert Number Stored as Text and Format in appropriate Currency Formats

    Dear AlphaFrog,
    Thank you once again for all your time and help. It worked.

+ 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. Number Stored as Text -> Convert to Number
    By ppayjj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2019, 01:57 PM
  2. [SOLVED] VBA convert number stored as text to number
    By Littlesimon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2017, 09:54 PM
  3. Replies: 19
    Last Post: 01-31-2016, 12:29 PM
  4. [SOLVED] Text stored as number when copied from one sheet to another, Auto convert required
    By A440 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 09:06 AM
  5. Macro - Convert stored text to number
    By adste89 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2013, 09:19 AM
  6. Replies: 1
    Last Post: 10-28-2012, 05:42 AM
  7. how do i convert a number stored as text to a numb in a vba loop
    By bobm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2010, 05: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