+ Reply to Thread
Results 1 to 13 of 13

Converting all displaying values to other currencies

  1. #1
    Registered User
    Join Date
    11-25-2006
    Posts
    5

    Converting all displaying values to other currencies

    Hi,
    I have made a personal budget document with all data in UK pounds, but I would also very much like to see the data in Swedish currency (and not just the total, but every field).
    I could ofcourse copy every field to the side and *13,5 but that would be quite messy.
    Is there anyway I could make a checkbox which said Currency with 2 options (UK pounds, Swedish 13,5) and if you put it to swedish every field would be times 13,5?

    A vauge plan for it is to maybe make a userdefined function to and put every single field through it (like CurrencyThing(x)) and that function would look at the checkbox to see if to multiply it or not.
    But that would mean I have to have that function through everything, plus I would have to learn how to make that function, does anyone know a better way?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    A very quick solution is to replicate your whole worksheet in a second worsksheet where in cell A1, you go typing
    =Sheet1!A1*13,5
    and then copy this formula right left as needed ...

    HTH
    Carim

  3. #3
    Registered User
    Join Date
    11-25-2006
    Posts
    5
    Hmm thanks but that's not really the solution I'm looking for, it's a bit too messy.

    the best solution yet I've come up with is to have 2 checkboxes, if the UK one is selected A1 = 1 if Swedish is selected A1 = 2,
    then a second field A2 has the formula if A1 = 1 then 1, if A1 = 2 then 13,5.
    So then every calculation in the rest of the document I have *Sheet1!A2.
    So atleast now I don't have to do any User function, but I still have to make it *Sheet1!A2 on every field tho.

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Ok then if you have your solution ... why ask ...!!!

    Your solution will work ... you only have to type in If 's in each cell ...

    HTH
    Carim

  5. #5
    Registered User
    Join Date
    11-25-2006
    Posts
    5
    I don't have to type in IF in each cell, just in one, but I have to multiply each cell with that.

    The reason why I asked was because I had hoped there were a better solution, maybe a built-in Currency thing that you could change, I've never used Excel before so I don't know,

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    As you wish ...

    But adding an If or a multiplication to each and every cell means :
    a manual intervention on each celll ...!!!

    Carim

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Carim,

    Could you not use some code and toggle results triggered by cell A1. Start with sterling then


    If Cell A1 = Swedish then format values as Swedish and x values by 13.5

    If cell A1 = Pounds then Format values as Sterling divided by 13.5

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    VBA Noob,

    You are absolutely right ... (as usual ..)

    With an event macro, Target.Address=A1 showing the currency selected by the user ... it is feasible AND it is an elegant solution, provided our user is prepared to maintain, preferably on a separate sheet, all the exchanges rates needed to convert his "cable"-based original worksheet ...

    Cheers
    Carim

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Carim,

    True

    Guess you could use a define name value if it was a semi static currency that didn't change often

    VBA Noob

  10. #10
    Registered User
    Join Date
    11-25-2006
    Posts
    5
    I don't understand what you mean :S

  11. #11
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This link might help you

    http://www.excelforum.com/showthread...light=currency

    VBA Noob

  12. #12
    Registered User
    Join Date
    11-25-2006
    Posts
    5
    Ah thanks, that sounds much better than the solution I'm currently using

  13. #13
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No Problem

    Carim gets th brownie points for this one

    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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