+ Reply to Thread
Results 1 to 4 of 4

Criteria selection problem...

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Criteria selection problem...

    Hi

    In a separate part of the worksheet for each Name, I want to get the phase name which is based on the latest date in the Stage Completion. E.g A would be 'Closure' as the latest stage complete is 3 July, B would be Execution, and so on. I want to use a formula rather than the advanced Filter or dBase function. Is this possible? It thought I was half way there with MAX IF but got stuck.

    Many thanks

    James

    Can't seem to copy the pix so here goes:

    A B C
    1 PhaseName Name Stage Completion
    2 Initiation A 1/7
    3 Execution A 2/7
    4 Closure A 3/7
    5 Initiation B 1/7
    6 Execution B 4/7
    7 Closure B
    8 Initiation C 1/7
    9 Execution C
    10 Closure C
    Last edited by JamesPrice; 07-19-2016 at 10:13 AM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Criteria selection problem...

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    1
    PhaseName
    Name
    Stage Completion
    ------
    PhaseName
    Name
    2
    Initiation
    A
    7/1/2016
    Closure
    A
    3
    Execution
    A
    7/2/2016
    4
    Closure
    A
    7/3/2016
    5
    Initiation
    B
    7/1/2016
    6
    Execution
    B
    7/4/2016
    7
    Closure
    B
    8
    Initiation
    C
    7/1/2016
    9
    Execution
    C
    10
    Closure
    C


    This array formula** entered in E2:

    =INDEX(A2:A10,MATCH(MAX(IF(B2:B10=F2,C2:C10)),IF(B2:B10=F2,C2:C10),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Criteria selection problem...

    Spot on Biff

    Thanks for this

    James

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Criteria selection problem...

    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. VBA selection criteria help
    By cmccabe in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-03-2014, 11:26 AM
  2. Update Values problem and a Value Selection Problem----Please Help.
    By TrivialT in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2013, 02:43 PM
  3. Drop-down box criteria selection.
    By elholder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2012, 07:51 PM
  4. Multiple selection criteria, which formula? .. and selection based on unique numbers
    By FalkirkJim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 05:22 PM
  5. SUMIF with multiple selection criteria problem
    By jonrayworth in forum Excel General
    Replies: 2
    Last Post: 11-04-2007, 06:48 PM
  6. MAX and Selection Criteria
    By Jerry Rogers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-25-2007, 06:59 PM
  7. Alternative criteria selection
    By greatday in forum Excel General
    Replies: 0
    Last Post: 04-04-2006, 03:16 PM

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