Results 1 to 3 of 3

Thread: Macro to delete trailing X's

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    13

    Macro to delete trailing X's

    I have a spreadsheet where I would like to delete all numbers where there is a trailing X in Column A on "imported Data" for eg 6X, 905X, 1111X etc

    Your assistance in this regard is most appreciated

  2. #2
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    13
    Quote Originally Posted by Howardc View Post
    I have a spreadsheet where I would like to delete all numbers where there is a trailing X in Column A on "imported Data" for eg 6X, 905X, 1111X etc
    Assuming those numbers in Column A with the X as the last character are all that you want to delete (as opposed to other cells on the same row or even the entire row), and assuming the X can only appear on the end of the number, then try this... select Column A, press CTRL+H to bring up the Replace Dialog box, type *X (that an asterisks followed by an X) in the "Find what" field, leave the "Replace with" field empty and click the OK button.

  3. #3
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    13
    Hi Rick

    Thanks for the help. Your tip works perfectly

    Regards

    Howard

Similar Threads

  1. Replies: 9
    Last Post: 05-22-2013, 09:12 PM
  2. Macro To Delete Numbers With Trailing Character
    By Howardc in forum Excel Help
    Replies: 8
    Last Post: 04-05-2013, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •