Results 1 to 7 of 7

macro that deletes matching under same client and odd entries

Threaded View

  1. #1
    Registered User
    Join Date
    04-05-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    56

    macro that deletes matching under same client and odd entries

    Hi guys

    I have no idea how to start this can someone please help as it would simplify my work a lot.

    I have 3 columns I want to compare

    Column A = Clients
    Column G = Amounts
    Column N = Case ID


    So let’s say

    Client | Amount | Case ID
    Mike | 50|123
    John | -50 |123
    Mike | 50 |123
    Mike | -50 |123
    John | 20 |456
    John | -20 |456
    Mike| -20 |456


    I want the macro to:


    Find debits and credits that match with the same client and case ID e.g. Mike has go a debit and a credit for 50.00 and john has got a credit and debit for 20.00 under the same case ID (Macro is to delete these transactions (Row))
    Remove any transactions that don’t have an contra, e.g. once matching has been deleted Mike will be left with a credit for 20.00 and the case ID and amount doesn’t match any other transactions (I need this to be deleted)
    Then I should be left with debits and credits that match for different clients for example John has a credit for 50 and mike has a debit for 50 under the same case ID, so I should be left with:


    Client | Amount | Case ID
    Mike | 50|123
    John | -50 |123

    I’d really appreciate it if someone could help me write a macro to do this, please use Column A, G and N as stated above.

    Thank you
    Attached Files Attached Files
    Last edited by fawnlemur; 07-20-2019 at 02:04 PM. Reason: added attachment

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] how to avoid multiple entries on a client list
    By Ildrim in forum Excel General
    Replies: 5
    Last Post: 06-09-2019, 03:17 AM
  2. [SOLVED] Client Data in Columns - how to create a client drop down
    By abearmenta in forum Excel General
    Replies: 9
    Last Post: 10-10-2016, 10:24 AM
  3. [SOLVED] Moving variable data from multiple same-client records to one client record
    By jkilday4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2015, 02:32 PM
  4. One spreadsheet but adding hours on a client by client basis..
    By arthurArthur in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-01-2013, 01:58 AM
  5. Combining multiple rows for multiple client entries
    By skinpup in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:28 AM
  6. VBA macro needed to delete duplicate entries matching across multiple columns
    By chicolocal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 02:34 PM
  7. [SOLVED] format cell to recall client name-enter a client #
    By cheryl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2005, 06:05 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