Filter Information From Multiple Sheets Into Master Worksheet

  • I have a memberlist with debts owed per member that I need to organize. There are a lot of members, and so I have organized it alphabetically.
    IE the first sheet is called A and contains all entries for members with names beginning with A, the next sheet is called B containing all names with the first letter B, and so forth.


    The "A" column contains the name of the member, the "H" column contains the total debt. Not all members have debt, some have positive values in this field. What I need is a macro that copies the value from "A" and "H" for all values of "H" that are less than zero, and compiles them into a single list. I basically wish to be able to browse all members who are in debt, without having to filter 26 separate lists.


    Only Columns "A" and "H" are relevant for me, the other rows are merely used in the calculation of said debt.
    The value in "H" is thus the result of a calculation, and not a typed number.
    The number of columns will never vary, but the number of rows might as members come and go.
    The worksheet number for the list will be number 27, I do not know if that is relevant.

  • Re: Filter Information From Multiple Sheets Into Master Worksheet


    Hi and welcome to the forum


    As you have found, splitting a database over a number of worksheets causes limitations when you attempt to manipulate or sort data, so I would recommend putting all your member details on 1 worksheet, unless, of course, you have more than 65k members, this will enable you to apply filters in the usual way


    Robert

  • Re: Filter Information From Multiple Sheets Into Master Worksheet


    Hi Sazrak,


    Agree with Robert B, but here's a macro I built from this post by Dave and this UDF by Aaron Blood (just note it assumes the data in each tab starts at row 2):



    HTH


    Robert

  • Re: Filter Information From Multiple Sheets Into Master Worksheet


    Thank you so much from your help.
    This updates my master sheet with all the information from all my other worksheets, right?
    So then I'm just filtering that sheet the normal way, which is no hassle. Excellent stuff.


    I do however receive one error:


    "Named Argument Not Found" in the Following Section


    Thanks for the help guys, I really appreciate it. You have no idea how much hassle you guys save people every day with help like this =)

  • Re: Filter Information From Multiple Sheets Into Master Worksheet


    Hi there,


    Thanks for the feedback :)


    Yes, the ConsolidateDebts macro updates the master sheet (i.e. tab "27") with any negatives from all the other sheets in your workbook.


    Not sure what the error is as I can't replicate it at my end, but it may be that there are no zero or positive numbers in column H to be deleted. With this in mind, I've tweaked the code below to cater for this.


    HTH


    Robert


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!