Closed Thread
Results 1 to 3 of 3

If criteria not met then another list

  1. #1
    Registered User
    Join Date
    03-12-2022
    Location
    Atlanta, Georgia
    MS-Off Ver
    365
    Posts
    94

    If criteria not met then another list

    I'm trying to get a modification to the following formula:

    =UNIQUE(SORT(TOCOL(FILTER(Table2[[Color 1]:[Color 4]],Table2[State]=$A$3),1)))


    Formula currently sort/filters all unique values in columns Color1 thru Color4 if State column matches criteria from "A3"....pretty straight forward.

    What I need: If criteria is not an option in State column then Colors if State selected should revert to Colors (ALL).
    Last edited by KerahJoy; 03-25-2024 at 09:34 AM. Reason: Upload Attachment

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,970

    Re: If criteria not met then another list

    Maybe this:

    =IF($A$3="",UNIQUE(SORT(TOCOL(Table2[[Color 1]:[Color 4]],1))),UNIQUE(SORT(TOCOL(FILTER(Table2[[Color 1]:[Color 4]],Table2[State]=$A$3),1))))

    But why start a new thread? Would have been better asked in the thread where you got the formula you want amending.
    Last edited by AliGW; 03-25-2024 at 09:38 AM. Reason: Workbook added.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,970

    Re: If criteria not met then another list

    Administrative Note:

    This is not a new issue, therefore does not warrant a new thread.

    You are allowed only ONE thread per issue here.

    Please see Forum Rule #2 about thread duplication.

    I am closing this thread, but you may continue here in the original thread: https://www.excelforum.com/excel-for...teria-met.html

    Thread closed.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Generate list based on multiple criteria - list active projects by engineer
    By eamono in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-18-2022, 05:54 PM
  2. [SOLVED] SUMIFS with List of Criteria or Range consist of Criteria
    By eing in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2021, 05:29 AM
  3. List Function with Criteria - Index Match with Criteria
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-24-2017, 11:11 PM
  4. Replies: 2
    Last Post: 01-03-2017, 08:40 AM
  5. List based on criteria if criteria changes list locks
    By cconlaund in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2015, 11:05 AM
  6. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 PM
  7. Replies: 2
    Last Post: 11-06-2012, 06:40 PM

Tags for this Thread

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