+ Reply to Thread
Results 1 to 3 of 3

Macro to delete items where Ref is Simililar and variance between values is a max of 0.70

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Macro to delete items where Ref is Simililar and variance between values is a max of 0.70

    I have references in Col D and values in Col F and G

    Where the references are similar and the difference between the sum of the value in Col F and G is a max of 0.70 , then those rows are to be deleted

    I have highlighted the items in my sample data to be deleted

    I have tried to write code but it deletes the wrong rows

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Macro to delete items where Ref is Simililar and variance between values is a max of 0


    First issue is the column D references are different …
    Last edited by Marc L; 07-21-2023 at 01:38 PM.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Macro to delete items where Ref is Simililar and variance between values is a max of 0

    Hi Marc

    Where the references are similar for eg PQRT P and PQRT and a small difference can be established between Value/s in Col F -ol G not exceeding 0.70, then those rows must be deleted


    I have attached updated sample data which I have highlighted in Yellow to be deleted

+ 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. [SOLVED] Macro to delete items in Col G greater than 1
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2021, 01:43 AM
  2. [SOLVED] Macro to delete certain items in Col B
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-31-2020, 03:34 AM
  3. [SOLVED] Macro to delete certain items then count remaining items #2
    By elgato74 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-21-2019, 02:26 PM
  4. [SOLVED] Macro to delete certain items then count remaining items
    By elgato74 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-14-2019, 03:20 PM
  5. Macro to delete items contain 1 and less
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2019, 06:20 PM
  6. Delete unwanted items in a column and joining values together
    By AndyDzul18 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-09-2017, 07:52 PM
  7. [SOLVED] Compare Data from Two different tabs and to identify variance items
    By Excel Dumbo in forum Excel General
    Replies: 4
    Last Post: 10-16-2012, 10:58 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