+ Reply to Thread
Results 1 to 3 of 3

Deleting data in a column

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Deleting data in a column

    Hello, could some one please help me with the following?

    I need a macro for Excel 2003 that will search column H (range: H2 to H5000) of my worksheet and delete the following word from each cell if it exists:

    The word is: AUSTRALIA

    Example: Cell H2 has the following text: PERTH, WA, AUSTRALIA

    I need it to read: PERTH, WA

    Also, I need the preceding comma and any spaces (usually one space) to also be deleted.

    If any one could please help, it would be greatly appreciated.

    Kind regards,

    Chris
    Last edited by longbow007; 04-29-2010 at 12:15 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Deleting data in a column

    Try Ctrl & H
    Find
    , AUSTRALIA
    replace with
    Blank
    Replace all

  3. #3
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Deleting data in a column

    Thank you davesexcel - your solution works well - greatly appreciated.

    Cheers,

    Chris.

+ 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