Sharepoint view filter to NOT Include a word

Audi86 781 Reputation points
2022-06-14T22:08:34.407+00:00

Hi,

we have a site which has over 1000 site pages and content team needs to create a personalized view to filter the required pages. We have pages names starting with "news-XXXXXXXX". Is there any way to filter out the News-pages through view filter.

211438-image.png

thanks

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. QuentinB 91 Reputation points
    2022-06-15T15:46:11.787+00:00

    Hi @Audi86 ,

    To do this, I would try to filter out all the Pages containing "News" in the Title. (Method 1)
    Warning: this will also filter out all the colums named "XXX-news-XXX"
    I'll propose an alternative method if that is a problem. (Method 2)

    Here are the steps for Method 1:

    Create a calculated column "is_News" which value is "Yes" if the column "Name" contains "News" using the following formula: =ISNUMBER(FIND("News",[Title]))

    211762-image.png

    Then filter out all the pages where the value of column " is_New" equals "Yes" ("Is not equal to" is a native filter.

    Method 2
    With this method you only filter out pages which Title starts with "News"

    Steps:

    Create a calculated column that returns the first 4 characters of the value of the column Title using: =LEFT([Title],LEN([Title])-4)
    211700-image.png

    Then again you can filter out the Pages where the the value of the calculated column equals "News"

    Please let me know if that's not helping.
    Best regards,

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Jinwei Li-MSFT 4,741 Reputation points Microsoft External Staff
    2022-06-15T07:11:10.923+00:00

    Hi @Audi86 ,

    May be you could try to create a new column to filter the news page.

    1.Create a calculate column
    211566-image.png

    2.Pin to filters pane.
    211577-image.png

    3.You could filter to include a word.
    211586-image.png
    211527-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

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.