Share via

FILTER function

Anonymous
2024-11-28T09:00:22+00:00

Hi all

I have created a basic FILTER function, as shown. It works fine, however, I've just realised that when the data doesn't meet the criteria I have specified, it simply returns nothing - not the text "No entries"? Can anybody see what I've done wrong? TIA, Louise

Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

12 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2024-11-28T14:27:28+00:00

    What does the notation A.:.G mean? It causes an error in my version of Excel (Microsoft 365 version 2411)

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-11-28T14:17:28+00:00

    I may be wrong, but if there is 1 row returned, wouldn't it be the header row?

    If there are 2 or more, then there must be valid data??

    I would not do it like this, but just an idea below.

    ( For the poster, the use of G:G is rather outdated. )

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2024-11-28T13:36:44+00:00

    Thank you. You have included the header row in the range to be filtered. Since a text value is larger than any number value, the formula will always return the header row, even if none of the data rows match the criteria:

    If you use the (not realistic) condition <0, the header row doesn't match the criteria either, so the formula returns "No returns":

    As a workaround, you might check whether any data rows meet the criteria:

    The formula is

    =IF(COUNTIF('Dynamic Filters Data'!G:G, ">12000")=0, "No returns", FILTER('Dynamic Filters Data'!A:G,'Dynamic Filters Data'!G:G>12000,"No returns"))

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-11-28T13:14:47+00:00

    Hi

    Strange isn't it. I have produced other reports from the same data set and it works fine on those. Very odd... I've clearly done something wrong.

    Here is a link to the data. Don't worry, it's all completely fictitious. Excel Filter file. Thank you, Louise

    Was this answer helpful?

    0 comments No comments
  5. HansV 462.6K Reputation points
    2024-11-28T09:25:41+00:00

    That is strange - the formula looks OK.

    Could you create a stripped-down copy of the workbook demonstrating the problem (without sensitive information) and make it available through one of the websites that let you upload and share a file, such as OneDrive, Google Drive, FileDropper or DropBox. Then post a link to the uploaded and shared file here.

    Was this answer helpful?

    0 comments No comments