+ Reply to Thread
Results 1 to 2 of 2

Convert to number but retain currency

  1. #1
    Registered User
    Join Date
    03-17-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    74

    Convert to number but retain currency

    Hello, I have a little bit of a problem here, working with 3 worksheets:


    Worksheet 1 column is called Holding (as in how many shares are you hold), this column under normal circumstances contains a number but on some occassion will contain a value held in £'s. so the column will appear something like this

    1000
    740
    500
    5000
    £4000
    300
    £350

    Worksheet 2 needs to replicate this data exactly, e.g if I have a £ symbol in worksheet 1, I must also show a £ symbol in worksheet 2. If there is no £ symbol in worksheet 1 then there should be no £ symbol in worksheet 2!

    and I am trying to get worksheet 3 so that it is purely numbers, i.e no £ symbol and everything should be stored as numbers! (worksheet 3 connects to an external file that can only read numbers!)

    As an additional test i want to see if my external connection will recognise a "currency" i.e something with a £ followed by numbers (£4000) purly as a number, so in worksheet 4 i would like everything to appear exactly as in worksheet 1 but everything should be a number regardless of whether it contains a £ symbol or not. Possible?!

    Please see attachment for a clearer idea

    many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Convert to number but retain currency

    If you select Sheet1!A2:A5 and copy..

    Then select Sheet2!A2:A5 and go to Edit|Paste Special and select Formats...

    ..you will have same formats.. is that ok?

    A formula solution would be:

    =TEXT(Sheet1!A2,IF(CELL("format",Sheet1!A2)="G","0","£ 0"))

    right aligned and copied down... but this is text...
    Last edited by NBVC; 06-12-2009 at 10:49 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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