+ Reply to Thread
Results 1 to 9 of 9

Multiple Criteria --get unique value

  1. #1
    Registered User
    Join Date
    04-18-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    10

    Multiple Criteria --get unique value

    Hello! Just wondering if anyone could help with the file attached.
    Need a formula in H which yields the results shown i.e., For every Value in B and C in combo is repeated together then only grab the Value in F corresponding to the greatest date for the combo.

    Much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Multiple Criteria --get unique value

    i'm not sure i'm following - why the last value in the example , you say in example the UNIQUE value - well you have 6 all the same in B and C and then choose the last value - not Unique

    perhaps
    =IF(COUNTIFS($B$2:$B2,B2,$C2:$C$2,C2)=MAX(COUNTIFS($B$2:$B$9,B2,$C$2:$C$9,C2)),F2,"")

    maybe some more examples may help
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Multiple Criteria --get unique value

    If I understand correctly:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    04-18-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    10

    Re: Multiple Criteria --get unique value

    Hi, Yes we have 6 all the same in B & C , then we have to choose the value in F which corresponds to the greatest date (4/6/2023) in this case. So have to take the greatest date in G into account for each set in B&C.

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Multiple Criteria --get unique value

    will there ever be 2 or more dates that are the same in the list - so 2 or more max dates in G the same with the same B&C

  6. #6
    Registered User
    Join Date
    04-18-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    10

    Re: Multiple Criteria --get unique value

    Same B&C may not always have two or more dates. Sometimes they may have only one unique date. If unique date then get value in F . If two or more dates for same B&C combo, get value in F for the greater of the dates; others will be 0 for the same B&C.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Multiple Criteria --get unique value

    I may not have explained correctly , i understood that part , its a different situation i was asking for clarification on

    what happens if
    B&C are the same but the date in G is also the same

    In your example - what happens if all the dates for
    235062-22-001 CLEANING
    are the
    6/4/23
    so 6 entries ALL the same dates and B&C all the same
    what value of F are then shown

  8. #8
    Registered User
    Join Date
    04-18-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    10

    Re: Multiple Criteria --get unique value

    Solved, i used the first formula

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Multiple Criteria --get unique value

    Solved, i used the first formula
    That gives the last value as explained in the post - NOT the latest date
    so if the dates are not in order , it will not work

    But if your happy , and dont want to answer the further questions - then you can mark as solved as explained in my signature on first post

+ 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. Count Unique ID's across multiple sheets with multiple criteria
    By ccon1027 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2019, 02:51 AM
  2. Unique list from multiple responses to multiple criteria
    By 0Stump3 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-12-2015, 12:11 PM
  3. Unique ranking by multiple criteria
    By reggie1000 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-21-2015, 08:03 AM
  4. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 PM
  5. Replies: 8
    Last Post: 07-13-2012, 06:00 AM
  6. vlookup with unique multiple criteria
    By rodonnell in forum Excel General
    Replies: 6
    Last Post: 04-15-2009, 01:42 PM
  7. Sum Multiple Criteria with Unique Value
    By bmcfiv in forum Excel General
    Replies: 12
    Last Post: 03-13-2009, 12:37 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