+ Reply to Thread
Results 1 to 3 of 3

Convert text to number cDec(xCell.Value)

  1. #1
    Forum Contributor
    Join Date
    01-14-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    125

    Convert text to number cDec(xCell.Value)

    For some reason when I am copying some numbers it pastes them as text and later down the road those cell values won't work in needed calculations

    Is there a way to either convert the paste destination with some sort of special "values" paste.... or to tweek/fix the range/for each/cDec/xCell lines I found from the net that doesn't seem to be working

    Please Login or Register  to view this content.
    Last edited by LiLi1; 03-05-2012 at 01:53 PM.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Convert text to number cDec(xCell.Value)

    Have you tried doing a multiplication?

    I.e.
    Please Login or Register  to view this content.
    Alf

  3. #3
    Forum Contributor
    Join Date
    01-14-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Convert text to number cDec(xCell.Value)

    I had to try a few things but the multiply idea was a good starting place and below is what worked. I also had issues with keeping the "xcell" I am thinking something with the formatting with cell.value vrs xcell.value was throwing it all goofy ... but changing it to cell.value fixed the other problem

    Please Login or Register  to view this content.
    Last edited by LiLi1; 03-05-2012 at 01:55 PM.

+ 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