+ Reply to Thread
Results 1 to 9 of 9

get currency format from a cell and convert it

  1. #1
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    get currency format from a cell and convert it

    Hello,
    I have to create an IF condition in order to change automatically a cell from $ to €.
    How can I get a currency format from a cell?

    at this moment I have created a column with a currency and use it to exchange but it isn't very sleek.

    appreciate your help

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: get currency format from a cell and convert it

    What is the condition?

    It would be best if you upload a sample file, look at the yellow banner at the top of the page for instructions.

  3. #3
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    Re: get currency format from a cell and convert it

    please look in the attached columns F/G//H/I/J
    I'd like to do G * F , if G is in € then has to divide by 1.20 (exchange EUR - USD).
    Now I am doing it by the column H , but I think that is not the best way to do it

    Thanks in advance
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: get currency format from a cell and convert it

    What differnce is there between testing for "EUR" vs "€" (your test in J) ?

  5. #5
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    Re: get currency format from a cell and convert it

    I'd like to have all column J with currency € while in the column "I" I want the total based on the "real"currency.
    if you see formula in J for having currency € I have inserted the column H

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: get currency format from a cell and convert it

    If you are haapy to use VBA (UDF function):
    Please Login or Register  to view this content.
    then in J

    =IF(currcode($G2)="€",$G2*$F2,IF(currcode($G2)="$",G2/$S$2*$F2,""))

    so you no longer need column H

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: get currency format from a cell and convert it

    Please Login or Register  to view this content.
    then in J

    =IF(currcode($G2)="€",$G2*$F2,IF(currcode($G2)="$",G2/$S$2*$F2,""))

    so you no longer need column H

    Reply on forum not behaving
    Attached Files Attached Files
    Last edited by JohnTopley; 03-17-2021 at 07:17 AM.

  8. #8
    Registered User
    Join Date
    03-15-2021
    Location
    italy
    MS-Off Ver
    Microsoft 365
    Posts
    21

    Re: get currency format from a cell and convert it

    Many many thanks

    I really admire your skills

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: get currency format from a cell and convert it

    Well, I'll admit it, I found the code on the web but if it solves the problem ......!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Identify current format and convert to single currency
    By WhatEx in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-11-2021, 12:43 PM
  2. [SOLVED] Macro to convert Number Stored as Text and Format in appropriate Currency Formats
    By sameer79 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-28-2020, 03:07 PM
  3. [SOLVED] How to convert numbers into words in Indian Currency Format
    By abhinavbinkar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2016, 09:14 AM
  4. Convert cell value to new currency using VBA
    By ryanpetersen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-05-2014, 01:13 AM
  5. Cell Date / Currency Convert
    By sparx in forum Excel General
    Replies: 2
    Last Post: 11-28-2005, 11:32 AM
  6. [SOLVED] convert a numerical currency into word format
    By Rojo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 08:06 PM
  7. CONVERT DATA TO CURRENCY FORMAT
    By roy in sunbury in forum Excel General
    Replies: 1
    Last Post: 01-12-2005, 12: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