+ Reply to Thread
Results 1 to 6 of 6

Macro to delete rows whwre Values sum to Zero

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

    Macro to delete rows whwre Values sum to Zero

    I have tried to write code to delete rows where there are values of 0.01 (positive or negative) , that sum up to zero


    Please Login or Register  to view this content.

    Your assistance is most appreciated


    It would be appreciated if someone could kindly amend my code

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Macro to delete rows whwre Values sum to Zero

    These values are:

    -1.00000000093132E-02
    -9.99999999476131E-03
    9.9999999802094E-03
    1.00000000020373E-02

    so <> 0, so I am not surprise that rows have not been deleted.
    I've tried:

    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

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

    Re: Macro to delete rows whwre Values sum to Zero

    Thanks for the help

    when running the macro I get a run time errror 'Type Mismatch an the code below is highlighted

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

    Kindly test & amend code

  4. #4
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Macro to delete rows whwre Values sum to Zero

    Please Login or Register  to view this content.
    in row 1 column 4(D) is word Amount so there is no absolute value of it :-)

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

    Re: Macro to delete rows whwre Values sum to Zero

    thanks for the code and for your input

  6. #6
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: Macro to delete rows whwre Values sum to Zero

    Happy to help.
    Thanks 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. 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
  2. [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
  3. [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
  4. [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
  5. [SOLVED] Help with macro to delete rows based on values
    By jimstrongy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-26-2012, 08:49 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