+ Reply to Thread
Results 1 to 7 of 7

Macro to delete rows where Values in Col D sum to zero

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

    Macro to delete rows where Values in Col D sum to zero

    I am looking for code to delete all rows where the sum of the debits and credits in Col A sums to zero


    Your assistance in this regard is most appreciated
    Last edited by Howardc1001; 02-07-2023 at 11:06 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Macro to delete rows where Values in Col D sum to zero

    .
    - In column A you have dates.
    - In column B you have codes that are not repeated except in a single case.
    - And column D is full of positive numbers except two.

    I ask: Are you sure you uploaded the correct workbook?...

    In any case: Could you indicate which row you think should be removed and why?
    You are always very welcome if you add reputation by clicking the * (bottom left) of each message that has helped you.

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

    Re: Macro to delete rows where Values in Col D sum to zero

    thanks for the reply

    The items in Yellow and blue sum to zero and those rows must be deleted-see attached fie

  4. #4
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Macro to delete rows where Values in Col D sum to zero

    Did you try Solver?...

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

    Re: Macro to delete rows where Values in Col D sum to zero

    I will try Solver. Have not used it for a long time, but will read up on how to use it again

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

    Re: Macro to delete rows where Values in Col D sum to zero

    I have used Solver and it works perfectly

  7. #7
    Valued Forum Contributor
    Join Date
    08-08-2022
    Location
    Buenos Aires
    MS-Off Ver
    Excel 2019
    Posts
    1,777

    Re: Macro to delete rows where Values in Col D sum to zero

    Quote Originally Posted by Howardc1001 View Post
    I have used Solver and it works perfectly


    Well done.

+ 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 clear rows whee ageing in Col L is below 120
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2022, 02:47 AM
  2. Macro to delete Rows where Values add up to zero In Col H
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 06-26-2021, 05:56 AM
  3. [SOLVED] Macro to delete rows where sum of values sum to zero
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 05-28-2020, 03:50 PM
  4. [SOLVED] Macro to delete rows in Col B where the values are zero
    By flupsie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2018, 10:13 AM
  5. [SOLVED] change macro to delete values in rows
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 06-20-2015, 07:26 AM
  6. Macro to delete rows containing values
    By mohan_rajun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2010, 07:30 AM
  7. macro to delete rows with a range for values
    By poole in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-28-2009, 02:18 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