+ Reply to Thread
Results 1 to 4 of 4

Automatically generating a filtered excel page

  1. #1
    Registered User
    Join Date
    04-11-2024
    Location
    Hong Kong
    MS-Off Ver
    2016
    Posts
    2

    Post Automatically generating a filtered excel page

    Hi everyone. Currently, I am using the below code to find out the total number of cases that satisfy some conditions (B41 is a date).

    =COUNTIFS(Data!B$6:B$5494, "<="&B41, Data!D$6:D$5494, "<="&B41, Data!E$6:E$5494, "<="&B41, Data!F$6:F$5494, ">"&B41)
    +COUNTIFS(Data!B$6:B$5494, "<="&B41, Data!D$6:D$5494, "<="&B41, Data!E$6:E$5494, "<="&B41, Data!F$6:F$5494, "=")
    +COUNTIFS(Data!B$6:B$5494, "<="&B41, Data!D$6:D$5494, "stock", Data!E$6:E$5494, "<="&B41, Data!F$6:F$5494, ">"&B41)
    +COUNTIFS(Data!B$6:B$5494, "<="&B41, Data!D$6:D$5494, "stock", Data!E$6:E$5494, "<="&B41, Data!F$6:F$5494, "=")

    (Please see the attachment for more details, Thank you )

    Now, I would like to generate a "filtered Excel page", listing all details (From A to X) of each particular case, so I can save time filtering each column one by one, and prevent clicking errors that I may make.

    Thank you so much for the time to read my question.
    Attached Files Attached Files
    Last edited by Bennett Y; 04-11-2024 at 05:48 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Automatically generating a filtered excel page

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-11-2024
    Location
    Hong Kong
    MS-Off Ver
    2016
    Posts
    2

    Re: Automatically generating a filtered excel page

    Dear Ali,

    Thank you for your reminder. It helps deliver my questions to others and benefits me as a new user.

    Thanks,
    Bennett

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,572

    Re: Automatically generating a filtered excel page

    I do not understand how the formula in post #1 relates to the file.
    It may help if you could explain in words how the raw data should be filtered so as to yield the expected data.
    As to conditional formatting
    Black fill with white font: =$J4>=61
    Red fill with white font: =$J4>=31
    Yellow fill with black font: =$J4<=30
    Note that rules should listed in the order above.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Excel for automatically generating PO numbers and using a macro to populate template
    By Rd026 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-19-2019, 07:11 AM
  2. Automatically generating excel file using template
    By yogyata26 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-10-2019, 11:29 AM
  3. Generating Filtered Results
    By sshirazz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2015, 07:52 PM
  4. Generating a filtered table
    By Vermont in forum Excel General
    Replies: 5
    Last Post: 07-11-2012, 05:59 AM
  5. Generating XML files vs. code page.
    By bentor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2010, 08:58 AM
  6. Replies: 1
    Last Post: 08-25-2005, 04:05 PM
  7. [SOLVED] Excel: Automatically Saving as Web Page
    By Danimagus in forum Excel General
    Replies: 0
    Last Post: 05-31-2005, 06:05 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