+ Reply to Thread
Results 1 to 6 of 6

Removing a row if it does not have the symbol # at the beginning

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Removing a row if it does not have the symbol # at the beginning

    Hi,

    I understand that the # represents a number but I have a column of ID's that start with # symbol that if any ID's do not start with the # symbol then I would like to delete that row.

    Here is what I have so far

    Please Login or Register  to view this content.
    Thanks for any help,

    David

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Removing a row if it does not have the symbol # at the beginning

    Please Login or Register  to view this content.
    Last edited by AB33; 07-22-2013 at 02:51 PM.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Removing a row if it does not have the symbol # at the beginning

    There is a quite user friendly and fast macro at this place. Use <>#* as criteria

  4. #4
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Removing a row if it does not have the symbol # at the beginning

    You could also try this
    Please Login or Register  to view this content.
    Try replacing your If statement with this
    Please Login or Register  to view this content.
    and putting the Mid statement inside of your With

    Please Login or Register  to view this content.
    ~~LaffyAffy13~~

    If I have helped you solve your problem, please be sure to click at the bottom left of my post.

    Thanks.

  5. #5
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Removing a row if it does not have the symbol # at the beginning

    You could try
    Please Login or Register  to view this content.
    where cell.value is the range from your ii loop, and see if that will test for the right symbol instead of your wildcard.

    Your loop is set up a bit funny though.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  6. #6
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    320

    Re: Removing a row if it does not have the symbol # at the beginning

    Thank you all for your answer, I went with AB33 and it works great.

+ 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. Removing Spaces at the Beginning and/or End of a Text String
    By olives in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-09-2013, 06:55 PM
  2. Removing numbers from the beginning of alphanumeric cells
    By .excelhelper. in forum Excel General
    Replies: 2
    Last Post: 08-19-2009, 01:48 PM
  3. Removing blank spaces from the beginning of cells
    By Research RN in forum Excel General
    Replies: 2
    Last Post: 06-17-2009, 11:39 AM
  4. Removing currency symbol
    By thirdeyesol in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2007, 01:58 PM
  5. Removing numbers from the beginning of a text string
    By Night Owl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2005, 01:06 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