+ Reply to Thread
Results 1 to 5 of 5

Remove $ sign and space before and after in range

  1. #1
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Exclamation Remove $ sign and space before and after in range

    Good day to all!

    I am copy pasting from a webpage that has 6 columns.

    Column A = Date
    Column B = Description (phrase; more than 1 word)
    Column C to F = Dollar amount

    The layout of Columns C to F is " $1,000.00 " (space before and after the dollar amount)

    This is not letting me do an autosum in the progress bar as well as the a formula as excel does not recognise it as a number

    * I did a Text-to-column delimiter on the Space but Column B is being split into separate columns because of the multiple words in the description.

    I appreciate anyone who can help in a line/lines of code that calls Range(C:F & lastrow) and removes the spaces and the dollar sign on paste event.

  2. #2
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Remove $ sign and space before and after in range

    can u share the sample file here
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Remove $ sign and space before and after in range

    Try selecting all the data in columns C to F and then do two Replace All commands. The first needs to replace $ with nothing, that is, put a $ sign in the first box and leave the second empty. And the second one needs to replace space with nothing. Might be worth replacing the comma with nothing in the middle but you might get away with that.

    Note that with Text to Columns, you can only work on one column at a time. Why did you use it on column B?

  4. #4
    Forum Contributor
    Join Date
    07-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: Remove $ sign and space before and after in range

    Quote Originally Posted by InvisibleMan View Post
    Try selecting all the data in columns C to F and then do two Replace All commands. The first needs to replace $ with nothing, that is, put a $ sign in the first box and leave the second empty. And the second one needs to replace space with nothing. Might be worth replacing the comma with nothing in the middle but you might get away with that.

    Note that with Text to Columns, you can only work on one column at a time. Why did you use it on column B?
    Sorry I did not explain the Text to Columns bit in detail. I did a pastespecial as text and it put Columns A-F as one string (column A)

  5. #5
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Remove $ sign and space before and after in range

    Maybe use the $ sign as the delimiter then.

+ 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. Remove borders and x sign on a userform through VBA
    By Sahonero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2014, 06:56 AM
  2. [SOLVED] Want to remove $ sign Form A4:A50
    By HaroonSid in forum Excel General
    Replies: 7
    Last Post: 04-21-2014, 12:52 AM
  3. [SOLVED] Remove - sign from columns
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-30-2013, 10:05 AM
  4. Remove a sign from a number
    By Monica85 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-28-2013, 01:53 AM
  5. [SOLVED] If Cell Starts with a Space, remove that space
    By Ocean Zhang in forum Excel General
    Replies: 2
    Last Post: 09-29-2012, 01:52 PM
  6. replace double space with single space within a range
    By erikd80 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2011, 01:20 PM
  7. How to remove a space before the "=" sign and make the formula works properly?
    By Leosado in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2010, 03: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