+ Reply to Thread
Results 1 to 5 of 5

Using ' in cells

Hybrid View

  1. #1
    Registered User
    Join Date
    12-15-2008
    Location
    aberdeen
    MS-Off Ver
    365
    Posts
    5

    Using ' in cells

    Hi.

    I currently have a number of spreadsheets with number data in it. I need to import it into a third party program. Unfortunately when this program imports it it counts numbers such as 1 as 1.0. This third party program says the only way around this is to put a ' before the numbers and this seems to fix the problem.

    My problem is that I have so much data I cannot go through ever cell and add a ' to the start. IS there a quick way to add ' to the start of certain cells?
    Last edited by u07jrb; 12-15-2008 at 10:28 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can select the column of numbers and go to Data|Text to Columns... click Next twice to get to the 3rd window. In the column data format area, select Text and then click Finished.

    The column should now be converted to text values.
    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.

  3. #3
    Registered User
    Join Date
    12-15-2008
    Location
    aberdeen
    MS-Off Ver
    365
    Posts
    5
    That is excellent. Thank you.

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi, This might do !:-
    Dim cl As Range
    For Each cl In ActiveSheet.UsedRange
        If IsNumeric(cl) Then
            cl = "'" & cl
        End If
    Next cl
    Regards Mick

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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