+ Reply to Thread
Results 1 to 4 of 4

(xxx).Value = (yyy).Value is Copying Number/Currency as Text? Need Number!

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2013
    Posts
    20

    (xxx).Value = (yyy).Value is Copying Number/Currency as Text? Need Number!

    Hi Guys,

    First time I've come across this and I can't figure out how else to do it.

    Rather than Copy/Paste, I use (e.g.) - Range("A1").Value = Range("A2").Value - to copy values across (usually from one workbook to another).

    However, I have some Currency figures (and dates incidentally) that are copying across with an error as they are 'numbers stored as text'.

    I have formatted all the relevant cells so they are Currency, but when this copies across, it still copies as Text. So do the dates.

    I've also tried .Value2 (something new I learned today!) but it's still text.

    Anyone tell me why this is going wrong?!?!?

    Thanks,
    ExcelNat

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: (xxx).Value = (yyy).Value is Copying Number/Currency as Text? Need Number!

    Formatting the cell won't change its contents; if they are text, they will remain text unless you re-enter them. If you need to change them in the target cell, you can use CCur when assigning from one to the other (and CDate for dates).
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    03-10-2014
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2013
    Posts
    20

    Re: (xxx).Value = (yyy).Value is Copying Number/Currency as Text? Need Number!

    Thanks for replying :-)

    Hmmmm I've not used CCur before...

    How would I use it?

    E.g. my code would look like:

    Please Login or Register  to view this content.
    Where all columns contain text except the 3rd column which is a date and 6th column which is currency??

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: (xxx).Value = (yyy).Value is Copying Number/Currency as Text? Need Number!

    You can't use it on more than one cell at a time. You should process the source range to convert them to real numbers first. Usually simply assigning the original range's value to its value will work as long as the cells are not formatted as Text:
    Please Login or Register  to view this content.

+ 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. How do I convert currency to number/text without rounding?
    By BabyNEWBIE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-16-2012, 12:23 PM
  2. convert a number/currency to text/ rupees in wordst in excel
    By sahasubrata2006 in forum Excel General
    Replies: 1
    Last Post: 07-28-2012, 03:28 AM
  3. Excel 2003 formula: keep currency format when putting text and number in same cell
    By cdstelco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-16-2011, 05:32 PM
  4. Formating columns to currency, text, number
    By Dave32 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2008, 07:35 PM
  5. Change Text number entry to Currency format
    By TomHead in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2007, 12:45 PM

Tags for this Thread

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