+ Reply to Thread
Results 1 to 11 of 11

Filtering so that it saves the filtered criteria and can then be generated automatically

  1. #1
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Filtering so that it saves the filtered criteria and can then be generated automatically

    I need to automatically filter my spreadsheet different ways for their assigned party. Is there any way to filter and save those filtered items so I don't have to filter each person's portfolio everyday? Please point me in the right direction.

  2. #2
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hi Michael,

    Depending on the layout of your data it may be possible with a Pivot Table(s).
    Are you able to attach a copy of the file?

    Regards

    peterrc

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    With using just regular filters, the last filter used when the file was saved (unless it was cleared) is the filter that will show when you load the file again.

    Perhaps a different approach might be available?
    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hello. Here is a small workbook as requested.

    I have 5 people under me that need separate case numbers to work upon. Across the board, column Step "Acquisitions", column Final Bill "Yes", column Pending Deposit Recon "Yes", and column Is Payment Due "Ok" need to be filtered out.

    Now,

    Worker1, only needs Area 6A to work on
    Worker2, only needs Area 3A and only Vendor Comed,
    Worker3, only needs Area 3A & 4a and not include and/or include certain vendors.
    etc, etc.

    So, I basically want to generate a report with such specified criteria without having to manually filter the necessary items very morning. I was looking into the Pivot Tables along with the data slicers possibly.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hi Michael,

    I have added "Workers" to your file and 6A doesn't show under Worker 1 as Acquisition has been filtered out - please see attached.

    Is this what you are after ?

    Regards

    peterrc
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hello Peter, Sorry for the delay in response. Essentially, yes. The idea is to incorporate the data slicer feature with the given criteria, if that was where you were leading me.

    Due to the a new formula in column L, the criteria has been simplified. So across the board, we want to exclude the items labeled OK in column L, exclude acquisitions is column B. So let's see how this works for the first two vendors. As the criteria gets for complex for the remaining 4 workers.

  7. #7
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hi Michael,

    Thanks for the feed back - please let me know how you get on.

    Regards

    peterrc

  8. #8
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    I started writing the formula, but realized there will be a significant amount of if and functions and will be too mind boggling. I am currently researching another viable option to produce the same results.

  9. #9
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hi Peter,

    =IF(P2="6A","DAISY",IF(G2="COMED","EVE & MICHELLE",IF(OR(P2="4S",P2="5A",G2="DUKE ENERGY",G2="DUKE ENERGY INDIANA", G2="DUKE ENERGY PROGRESS"),"TANGELA", IF(OR(AND(P2="3A",G2<>"COMED"), AND(E2="KY",P2="4A")), "MICHAEL", "PABLO"))))

    Ok, so i started coding my nesting if function which i was amazed that i was able to do. Anyway, towards the middle of the formula, is there some type of wild card that I can use to include all values in column G that begin with DUKE to simplify the formula?

  10. #10
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Hi Michael,

    I have "modified" the Pivot Table(s) that I initially posted (post #5) to reflect the names of the workers - please see attached.
    I used the "Show Report Filter Pages" (under Pivot Table Options) to automatically create the individual named Pivot Tables.
    Please note I have not addressed the issue regarding DUKE in column G as I am not exactly sure what you mean by:-
    "is there some type of wild card that I can use to include all values in column G that begin with DUKE to simplify the formula?"

    Is this any closer to what you want ?

    Regards

    peterrc
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Re: Filtering so that it saves the filtered criteria and can then be generated automatical

    Yes, that looks great.

    For example, this part of the formula ...IF(OR(P2="4S",P2="5A",G2="DUKE ENERGY",G2="DUKE ENERGY INDIANA", G2="DUKE ENERGY PROGRESS")... I have to enter all the names of the 3 Dukes so the formula captures each vendor. But is that another function or wild card that can capture these 3 Dukes, just by inputting the word DUKE?

+ 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. Automatically Generated list based on criteria
    By genichigo in forum Excel General
    Replies: 2
    Last Post: 03-21-2013, 02:21 PM
  2. Replies: 0
    Last Post: 09-25-2012, 11:34 AM
  3. Replies: 1
    Last Post: 07-12-2012, 11:00 PM
  4. Replies: 2
    Last Post: 02-29-2012, 09:34 PM
  5. Set automatically generated csv file to be shared
    By dmitry in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2012, 09:15 PM
  6. Form of an automatically generated number
    By ImboJones in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2010, 09:35 AM
  7. Automatically Generated Average Sheet
    By ugg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2007, 11:09 PM
  8. macro that automatically saves a copy of the XLS document in CSV format
    By WDTrey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-03-2005, 07:07 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