+ Reply to Thread
Results 1 to 4 of 4

edit " +$" from entries in a column of data

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    edit " +$" from entries in a column of data

    I have a workbook created by copying data from a website. Every amount is preceded by "+$", which I would like to eliminate so that only the value remains.
    Yes, there is a space before the "+".
    There are hundreds of rows.
    I tried creating a macro to eliminate this. I recorded these steps: "edit, home, delete, delete, delete, enter." five times. When I run this macro on a different group of cells, it replaces the contents of those cells with the contents of the original cells which were used to create the macro.

    The code reads:
    {code}' Keyboard Shortcut: Ctrl+y
    '
    ActiveCell.FormulaR1C1 = "763.7"
    Range("I60").Select
    ActiveCell.FormulaR1C1 = "898.96"
    Range("I61").Select
    ActiveCell.FormulaR1C1 = "329.09"
    Range("I62").Select
    ActiveCell.FormulaR1C1 = "37.82"
    Range("I63").Select
    ActiveCell.FormulaR1C1 = "109.59"
    Range("I64").Select
    End Sub

    Clearly creating a macro with the recorder does not work in this case. Assistance would be appreciated.
    Thanks

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: edit " +$" from entries in a column of data

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Valued Forum Contributor
    Join Date
    10-05-2014
    Location
    Regina, SK Canada
    MS-Off Ver
    Excel for Mac 11
    Posts
    330

    Re: edit " +$" from entries in a column of data

    Try this…

    Create this macro.
    Select the data and then run it to remove the + and $ symbols from the first 2 positions of each cell and create a numeric results.

    Please Login or Register  to view this content.
    Hope this helps.

  4. #4
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: edit " +$" from entries in a column of data

    If there are only 3 characters (space, + and $), then a formula would do
    Assuming the data is in cell C1 and down:
    In a free column and copy down
    =RIGHT(C1,LEN(C1)-3)

    Or with code:
    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. One column of data, search for "similar" row entries
    By COGICPENNY in forum Excel General
    Replies: 4
    Last Post: 05-08-2014, 07:57 AM
  2. [SOLVED] filling cell in column "a" if data present in column "b" issue.
    By timmatthews in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2013, 11:43 AM
  3. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  4. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  5. [SOLVED] Replace "insert function" with "edit formula" button in fourmula b
    By 13brian in forum Excel General
    Replies: 0
    Last Post: 08-24-2005, 04:05 PM

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