+ Reply to Thread
Results 1 to 4 of 4

Thread: how to sort and separate outstanding data and reconciled data

  1. #1
    Registered User
    Join Date
    07-25-2011
    Location
    accra, ghana
    MS-Off Ver
    Excel 2007
    Posts
    10

    how to sort and separate outstanding data and reconciled data

    Every morning i receive data of more than a 1500 entries in Excel. I am to sort these data such that if the total amount
    (ie sum of the amount in column E) of all the data with the same transaction code (column C) is zero (0), then these group of
    data with the same transaction code is filtered out (or moved to a different sheet) and the transaction codes whose amount
    when added together and does not sum up to zero are also moved to a seperate sheet.

    Example:
    if there are y numbers of rows which have the same transaction code (column C) and the sum of their amount in column E is equal to zero then all
    these y rows should be be copied to a new sheet, say sheet3 and listed among rows with the same characteristics. Similarly,
    if the we have X number of rows which have the same transaction code
    (column c) but the sum of all their amount does not add up to zero (be it negative or positive) all these x number of rows should be
    copied to another sheet say sheet 4. please find attached a sample of the data I use.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-30-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: how to sort and separate outstanding data and reconciled data

    A quick pivot table shows there are no transaction codes on this sample that zero out
    Your are looking for a macro that will split this data into two separate sheets based on the sum of the amount per transaction code? With one sheet zeroing and the other not?

  3. #3
    Registered User
    Join Date
    07-25-2011
    Location
    accra, ghana
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: how to sort and separate outstanding data and reconciled data

    Hi raystafarian,
    You understand exactly what i want. is it possible to use a formulas such that they don't exhaust all my memory as it is running on my 2G, 1.6gh, PC.

    thanks in advance

  4. #4
    Valued Forum Contributor
    Join Date
    03-13-2004
    Location
    Gothenburg/Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and reluctantly Excel 2007
    Posts
    631

    Re: how to sort and separate outstanding data and reconciled data

    Perhaps a macro like this could be of use to you?

    To test run macro "separate_rows".

    The macro "separate_rows" first clears sheet2, sheet3 and sheet4. It then makes a copy of your indata sheet (sheet1) called "Analyze" and sorts and trims the values in column C as there are a number of trailing spaces in those values.

    The trimmed values are then sorted for unique values and using a "SUMIF" function the value of the rows are checked. If the sum is zero those rows will be copied to sheet4 and their values will be deleted from "Analyze".

    After checking all the "SUMIF" values, coping and deleting if values are zero the remaining data is copied to sheet3 and sheet "Analyze" is deleted.

    Your original data on Sheet1 is left undisturbed by this macro.

    Alf
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0