+ Reply to Thread
Results 1 to 6 of 6

Run AdvancedFilter multiple times and show output on other sheet

  1. #1
    Registered User
    Join Date
    09-09-2020
    Location
    Mexico City, Mexico
    MS-Off Ver
    Live 360 Windows
    Posts
    3

    Run AdvancedFilter multiple times and show output on other sheet

    I have successful AdvancedFilter code running on one sheet. By changing cell B1 I am automatically filtering records by date, which allows for a historic calculation of this loan portfolio. Cells D1:J1 are calculated results and will change as B1 is updated.

    Annotation 2020-09-09 153153.png

    My goal is to chart D1:J1 by month. I need to update B1 automatically a given number of times and put the results into a simple sheet like the one below. Right now I am just running each month and pasting the results. It gave me the charts I need but this is a real pain if the source data changes!

    Where do I even begin?

    Annotation 2020-09-09 152938.png

    Guidance to the right code or help files would be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Run AdvancedFilter multiple times and show output on other sheet

    We can create a custom file to create the data you want through the use of VBA, but we need the underlying file to carry out the work. Please follow the instructions in the yellow banner above to upload a working file.

  3. #3
    Registered User
    Join Date
    09-09-2020
    Location
    Mexico City, Mexico
    MS-Off Ver
    Live 360 Windows
    Posts
    3

    Re: Run AdvancedFilter multiple times and show output on other sheet

    Thanks, I was hoping not to actually upload the file or have someone do the work for me. Rather I'd like a pointer in the right direction. If you think it's critical I can spend some time tomorrow sanitizing the file - lots of sensitive data.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: Run AdvancedFilter multiple times and show output on other sheet

    Rather I'd like a pointer in the right direction
    You will need to apply a loop x number of times changing B1 value to different values all the time, then applying your filter code and your chart code within the loop...However, a sample file depicting your exact setup does "Speak a 1000 Words"
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  5. #5
    Registered User
    Join Date
    09-09-2020
    Location
    Mexico City, Mexico
    MS-Off Ver
    Live 360 Windows
    Posts
    3

    Re: Run AdvancedFilter multiple times and show output on other sheet

    I did it! And yes I basically went and re-learned loops, I was so very rusty, I managed to get this together in about 2 hours, not too shabby. Ready for the next challenge.
    Should anyone else need this it's not unlike running a Vlookup multiple times

    Please Login or Register  to view this content.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: Run AdvancedFilter multiple times and show output on other sheet

    Well done...Any chance you can upload a sample file showing your work so others too can learn...

+ 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] AdvancedFilter multiple criteria
    By jlt199 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-24-2018, 12:01 PM
  2. Output Cells Multiple Times
    By almo136 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2016, 09:36 PM
  3. How to set multiple criteria for .advancedfilter in VBA
    By dorian821 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2016, 04:48 AM
  4. Replies: 2
    Last Post: 01-23-2016, 01:16 PM
  5. [SOLVED] Advancedfilter with multiple criteria?
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2014, 03:34 PM
  6. AdvancedFilter possible in sheet code?
    By dpenny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 06:23 PM
  7. AdvancedFilter - copy to different sheet
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2010, 12:44 PM

Tags for this Thread

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