Excel FILTER function not working with Table transformed and loaded in Power Query

Franco Silvestri 20 Reputation points
2025-07-24T14:22:52.48+00:00

Hi Everybody,

I have operated a series of transformations and queries in Power Query (from original table in Excel), and then loaded the result in an Excel worksheet. The result is a table (t_Values) with two columns (Number, Title). The [Title] column contains text.Capture

In the same worksheet, on the right side of the Table, but outside of the Table, I want to Filter some values of the [Title] column. In the cell L2 I wrote the value to Filter for. Following some tutorials, I applied the following formula:

=FILTER(t_Values, t_Values[TITLE]=L2)

No matter how many times I try, the result is always #CALC!
Capture1

I even tried to transform the Table to Range, but no positive outcome.
I've verified that the content of the Table is text with =ISTEXT --> TRUE

What am I doing wrong?
Are Excel FILTER function and Power Query loaded Tables compatible?

Thank you in advance.

Frank

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. riny 20,530 Reputation points Volunteer Moderator
    2025-07-25T05:53:45.74+00:00

    Try this:

    =FILTER(t_Values[TITLE],ISNUMBER(SEARCH(L2,t_Values[TITLE])))

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Herbert Seidenberg 1,201 Reputation points
    2025-07-24T18:55:06.19+00:00
    2 people found this answer helpful.

  2. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2025-08-07T23:47:18.3633333+00:00

    Hi,

    In cell F2, enter this formula

    =FILTER(A2:A5,REGEXTEST(A2:A5,D2,1))

    Hope this helps.

    User's image

    1 person found this answer helpful.
    0 comments No comments

  3. Franco Silvestri 0 Reputation points
    2025-11-29T07:53:20.5733333+00:00

    I summarize my mistake and the solution:
    I was trying to filter a column containing a string (sentence), with only a part of the string (incomplete string or sentence). The FILTER function returns TRUE only if the exact text is found inside the filtered column, otherwise it returns FALSE. I cannot filter "SURVIVE" if the cell contains "SURVIVE ...".
    The solutions are as suggested above. Another alternative solution would be to split the column and trim each word, then FILTER by the column containing the desired word.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.