+ Reply to Thread
Results 1 to 10 of 10

Filter table data & limit returned to 50 rows

  1. #1
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Filter table data & limit returned to 50 rows

    Hello,

    I am using this formula to filter data from a table.

    =IF(B2="","",FILTER(FILTER(TData,IF(B2="All",1,TData[EMPLOYEE NAME]=B2)*(TData[AUDIT DATE]>=C3)*(TData[AUDIT DATE]<=C4)*IF(E3="All",1,TData[SHIFT]=E3)*IF(E4="All",1,TData[TYPE]=E4)*IF(E2="All",1,TData[REASON]=E2)),{1,1,1,1,0,1,1}))

    I need to limit the number rows it returns to 50 so it doesn't run into another area and cause a #SPILL! error.

    I was researching online that Sequence(50) added to the formula may work, but I can't get that to work.

    I appreciate any assistance.

    Thank you,
    Nick

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Filter table data & limit returned to 50 rows

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Filter table data & limit returned to 50 rows

    Hi Fluff,

    With your suggestion I am getting #REF! errors when there is less than 50.

    I attached an example. If you know a solution, is there a way that if there is no data found to have it just be blank?

    I appreciate any help.

    Nick
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Filter table data & limit returned to 50 rows

    Ok, how about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or slightly shorter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Fluff13; 12-03-2021 at 03:18 PM.

  5. #5
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Filter table data & limit returned to 50 rows

    Awesome! Thank you.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Filter table data & limit returned to 50 rows

    You're welcome & thanks for the feedback.

  7. #7
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Filter table data & limit returned to 50 rows

    Hi Fluff,

    I like that INDEX better than the additional filter formula, easier to type in 1,2,3.. instead of 1's and 0's lol. In order to use the index in the original formula without a row limit, do I need to have it at the beginning such as the Filter is below?

    =IF(B2="","",FILTER(FILTER(TData,IF(B2="All",1,TData[EMPLOYEE NAME]=B2)*(TData[AUDIT DATE]>=C3)*(TData[AUDIT DATE]<=C4)*IF(E3="All",1,TData[SHIFT]=E3)*IF(E4="All",1,TData[TYPE]=E4)*IF(E2="All",1,TData[REASON]=E2)),{1,1,1,1,0,1,1}))

    Thank you,

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Filter table data & limit returned to 50 rows

    Yes, but you would also need to give it a sequence like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: Filter table data & limit returned to 50 rows

    Cool Thanks!

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Filter table data & limit returned to 50 rows

    My pleasure.

+ 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] How to Limit the number of rows returned by Filter formula?
    By bazmal in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-19-2021, 02:19 PM
  2. Limit Pivot Table Filter to show Top 10
    By lolaryong in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-24-2018, 04:05 AM
  3. [SOLVED] Limit how much higher the returned value is from the searched value
    By PeanutPete in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2013, 12:43 PM
  4. update cells only on rows returned by advanced filter in userforms
    By bharathy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2013, 06:32 AM
  5. [SOLVED] is there a limit to the number of rows the filter can handle?
    By hungatep in forum Excel General
    Replies: 2
    Last Post: 05-19-2006, 06:35 PM
  6. Limit the number of rows for a filter
    By guilbj2 in forum Excel General
    Replies: 3
    Last Post: 05-31-2005, 11:51 AM
  7. [SOLVED] Find the number of rows returned in a filter
    By Tony W in forum Excel General
    Replies: 5
    Last Post: 05-30-2005, 06:05 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