+ Reply to Thread
Results 1 to 2 of 2

Complex matching and removing problem that is giving me fits

  1. #1
    Registered User
    Join Date
    01-11-2017
    Location
    San Francisco, California
    MS-Off Ver
    2010
    Posts
    1

    Complex matching and removing problem that is giving me fits

    Hello, this is a problem that has been giving me trouble. I was wondering if anyone on here would happen to have a solution.

    I have a column of account numbers, and a column of dollar amounts, most dollar amount have a negative and positive entry.

    columns are sorted by account number, then dollar amount

    I need to sum all of the dollar amounts together that correspond to each individual account number.

    if the sum = 0 I need to report this in a different column as "ok"

    If the sum <>0 I need to isolate the items that are missing a Positive or negative entry and report them in a different column
    ***Here is the kicker
    There is a 3rd column with a transaction number
    for the items that do have a positive and negative entry the negative entry will be the next highest transaction number in relation to the account number.

    *Example: Account number 123 has 3 entries with balancing entries x1 represents the positive entry with the smallest transaction number, corresponding to account number:123. x3 represents the positive entry with the largest transaction number, corresponding to account
    number:123. Same logic goes for the negative entries y. So x1 matches with y1, x2 matches with y2 and x3 matches with y3. when there are no issues.
    I need to know what specific entries are missing, amount is not enough, so if x2 from the previous example is missing I would need to remove x2 and know that items account number amount and transaction number, and not disrupt the other matching.

    So when it’s all said and done I will have identified all of the entries that do not have a balancing entry.
    Thanks in Advance!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Complex matching and removing problem that is giving me fits

    Hello VBNathan,

    Welcome to the Forum!

    I know this information is of a sensitive nature. In order to save time, you should pull together a sample workbook with say about 5 - 10 accounts in it. This will provide a good working sample. Be sure to change any personal info in the workbook before you post it.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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] Complex formula giving #value error
    By at325 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2015, 07:43 AM
  2. [SOLVED] Finding the next date that fits multiple criteria - Complex formula.
    By JulesR in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-20-2015, 03:33 AM
  3. [SOLVED] Complex ??Need to adjust formula giving unexpected results with trim & substitute
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 03:48 AM
  4. Matching and giving output
    By cksrules in forum Excel General
    Replies: 1
    Last Post: 09-02-2011, 08:09 AM
  5. Removing all Connections via VBA giving error messages when opening new ws
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-16-2011, 05:01 PM
  6. Very large complex workbook is now giving me the wrong results :(
    By S Davis in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-17-2006, 04:05 PM
  7. Excel to Outlook VBA giving my Calendar Fits
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 03:40 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