+ Reply to Thread
Results 1 to 2 of 2

Find rows with same sequence of number in coloum entry and delete one of them

  1. #1
    Registered User
    Join Date
    12-12-2019
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    2

    Find rows with same sequence of number in coloum entry and delete one of them

    Hallo

    I have been looking for a solution for this specific problem with VBA but havent found any. I hope you can help me out.

    I need to find those row couples that have in one specific coloum (A) the same searched for digits in the cell entry, like Apple9003 and garden4003 would be a pair because of the last three digits. I do not know before what digits will I have to search for, I just have to check the last 3 digits if they are the same.

    The next step would be to not delete the one that has an entry in coloum M but the other one. I guess here I can just say if empty delete. The first task and the if loop is a problem for me.

    Do you have any suggestions for me please?

    INPUT TABLE

    A ..................... B
    Apple9003.........89
    garden4003
    house222
    bird1222..........23
    pizza777


    OUTPUT TABLE
    A........................B
    Apple9003..........89
    bird1222...........23
    pizza777


    Thank you very much!!

    Mitama

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Find rows with same sequence of number in coloum entry and delete one of them

    This might work for you:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

+ 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. vba code to find the last duplicate entry in a column and delete other rows
    By stefanp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-18-2019, 06:37 PM
  2. [SOLVED] Macro to find particular number and delete those rows
    By oeyandyprawira in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-01-2018, 09:57 PM
  3. Find cells in colum A that do not contain a number and delete their rows
    By khalloran in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2014, 07:04 PM
  4. [SOLVED] Need to delete rows if cell contains sequence:
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-08-2014, 09:35 AM
  5. [SOLVED] Find first blank row, count up X number of rows and delete
    By BeachRock in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-04-2012, 11:03 PM
  6. marcro to delete rows if coloum is over value
    By Kezwick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2011, 03:11 AM
  7. Delete Rows in Sequence
    By Jakila2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2011, 05:40 AM

Tags for this Thread

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