+ Reply to Thread
Results 1 to 1 of 1

Macro to subtract values where Ref is the same and diff value does not exceed 1.00

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

    Macro to subtract values where Ref is the same and diff value does not exceed 1.00

    i have references in Col C and values in Col D

    1) where the references are the same then subtract the first value where the reference is the same , but only show difference where it does not exceed 1.00 in Col D next to the first reference-where difference is zero, then all rows containing zero to be deleted
    2) Where the values are opposite and equal, then add these together and show difference only where it does not exceed 1.00 in Col D next to the first reference. where difference is zero, then all rows containing zero to be deleted
    3) Once the above has been done then the row containing the duplicate reference must be deleted


    I have code which does the above, but need it amended to do the above



    Please Login or Register  to view this content.

    I have attached sample data and show what the data should look like on sheet "Final Result"



    your assistance in amending my code is most appreciated


    i have also posted on https://www.mrexcel.com/board/thread...teria.1178089/
    Last edited by Howardc1001; 08-02-2021 at 10:18 AM.

+ 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 Subtract values where Ref is the same and then delete Duplicate Ref
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2021, 12:27 AM
  2. Button Macro to Subtract values from another cell
    By mdoverl in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-15-2014, 06:42 PM
  3. Macro to copy and paste values from diff sheets into a template worbook
    By bloom1439 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2013, 10:25 AM
  4. [SOLVED] Macro to send mail via lotus notes diff people diff attachment
    By mangeshp4 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-21-2013, 03:01 AM
  5. Need a macro to subtract cell values of 2 separate workbooks.
    By Cindyberlindeee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2013, 02:35 AM
  6. Incorporate MATCH, & COPY/Paste Special, Values, into a macro referencing 2 diff sheets
    By m blane wallace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2012, 11:21 AM
  7. [SOLVED] How do I add/subtract hours and minutes when some values exceed 2.
    By lhasalass in forum Excel General
    Replies: 2
    Last Post: 05-25-2005, 12: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