+ Reply to Thread
Results 1 to 5 of 5

Excluding items of a list based on criteria

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Excluding items of a list based on criteria

    Hi,

    In the attached workbook I have a named range in A column "AllFiles" in cell B1 I have another name that I would not like to add in the list.

    Other items to exclude

    Any item that does not starts with a date. It may include a date at the end but not in the beginning.

    I have highlighted the pattern of items that I want to exlcude.

    The output is shown in the C column manually which needs to be driven using formula.

    Best Regards
    Imran Bhatti
    Attached Files Attached Files
    Teach me Excel VBA

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

    Re: Excluding items of a list based on criteria

    How about
    =INDEX($A$3:$A$41,AGGREGATE(15,6,(ROW($A$3:$A$41)-ROW($A$3)+1)/(($A$3:$A$41<>$B$1)*(NOT(ISNUMBER(--LEFT($A$3:$A$41,10))))),ROWS($A$1:$A1)))

  3. #3
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Excluding items of a list based on criteria

    Or,

    In B3, copied down :

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(A$3:A$41)/(A$3:A$41<>B$1)/ISERR(-LEFT($A$3:$A$41,10)),ROWS($1:1))),"")

    Regards
    Bosco

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Excluding items of a list based on criteria

    Thanks @Fluff13 and Bosco

    Solutions of both'ov you are working as required.

    Much appreciated

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

    Re: Excluding items of a list based on criteria

    You're welcome & thanks for the feedback

+ 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] Horizontal list of unique items based on criteria
    By Schultze in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-16-2018, 03:14 PM
  2. Count from a text list, excluding duplicates, with multiple criteria
    By Ecervantes in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2017, 10:42 PM
  3. Replies: 0
    Last Post: 01-15-2013, 11:30 AM
  4. Summarise a figure froma list excluding certain items
    By Tradesman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2012, 06:12 AM
  5. formula to get list of items from 1 col based on a criteria in another col
    By aravindhan_31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2009, 08:25 AM
  6. Including/excluding items in a net list from a gross list
    By thomaskabel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2009, 06:37 AM
  7. Excluding Numerical Characters Based on Criteria
    By NewExcelUser in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2008, 06:10 AM

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