+ Reply to Thread
Results 1 to 11 of 11

How do you List unique names when the criteria is identical

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    How do you List unique names when the criteria is identical

    Hi i have a list of names, dates and times. The dates and times for each session are identical i.e 1 pm each day and four customers per day 9equates to the same date being used four times).

    I need to select a montha and list the names of the clients that match the criteria, ie date and time in sequence.

    Thanks in advance

    Please see the attached sheet for details.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: How do you List unique names when the criteria is identical

    Does a pivot table accomplish what you are looking for?
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do you List unique names when the criteria is identical

    Hi it needs to be in workbook format with formulas as I have 4 sections per month to fill with names depending on the date.

    Cheers

  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: How do you List unique names when the criteria is identical

    Will the dates all be within the same year?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do you List unique names when the criteria is identical

    The user has the choice from a drop down list as to what year they will be using

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

    Re: How do you List unique names when the criteria is identical

    Try this...

    All formulas are array formulas**.

    Entered in A4:

    =IFERROR(INDEX(Data!C:C,SMALL(IF(TEXT(Data!$B$2:$B$9,"mmmmyyyy")=C$1&D$1,ROW(Data!C$2:C$9)),ROWS(A$4:A4))),"")

    Entered in B4:

    =IFERROR(INDEX(Data!A:A,SMALL(IF(TEXT(Data!$B$2:$B$9,"mmmmyyyy")=C$1&D$1,ROW(Data!A$2:A$9)),ROWS(A$4:A4))),"")

    Entered in C4:

    =IFERROR(INDEX(Data!B:B,SMALL(IF(TEXT(Data!$B$2:$B$9,"mmmmyyyy")=C$1&D$1,ROW(Data!B$2:B$9)),ROWS(A$4:A4))),"")

    Format as Date

    ** 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.

    Select A4:C4 and copy down until you get blanks.

  7. #7
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do you List unique names when the criteria is identical

    I can't get it to work - the array formula just brings up blank cells and dosen't list the four names for each month only the 3rd name of each list. Any ideas?

    Cheers

    JD

  8. #8
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do you List unique names when the criteria is identical

    Hi just to amend the last post I have got the formula working, I need a second criteria adding if possible please, I need the formula to look at another column and if it displays the number 1 in the cell then to take that into consideration so the lookup criteria would be month, year and the number 1.

    Cheers

    JD
    Last edited by john dalton; 10-08-2013 at 05:34 AM. Reason: spelling

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

    Re: How do you List unique names when the criteria is identical

    Post the formula you are using.

    What column do we need to look in for the number 1?

  10. #10
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: How do you List unique names when the criteria is identical

    Hi the type list is in cloumn a of the data entry sheet, I have attached the updated sheet for viewing.

    I used the formula you created Tony.


    JD
    Attached Files Attached Files
    Last edited by john dalton; 10-10-2013 at 08:19 AM. Reason: added text

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

    Re: How do you List unique names when the criteria is identical

    Try this...

    On the Appointments Book sheet...

    C1 = some month
    D1 = some year
    E1 = some type

    Array formula** entered in A4:

    =IFERROR(INDEX(Data!D:D,SMALL(IF(TEXT(Data!C$2:C$9,"mmmmyyyy")=C$1&D$1,IF(Data!A$2:A$9=E$1,ROW(Data!A$2:A$9))),ROWS(A$4:A4))),"")

    Array formula** entered in B4:

    =IFERROR(INDEX(Data!B:B,SMALL(IF(TEXT(Data!C$2:C$9,"mmmmyyyy")=C$1&D$1,IF(Data!A$2:A$9=E$1,ROW(Data!A$2:A$9))),ROWS(A$4:A4))),"")

    Array formula** entered in C4:

    =IFERROR(INDEX(Data!C:C,SMALL(IF(TEXT(Data!C$2:C$9,"mmmmyyyy")=C$1&D$1,IF(Data!A$2:A$9=E$1,ROW(Data!A$2:A$9))),ROWS(A$4:A4))),"")

    ** 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.

    Select A4:C4 and copy down until you get blanks.

+ 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] All possible unique combination of 16 names from a list that contains 19 names
    By spirit29 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 01:08 PM
  2. Replies: 17
    Last Post: 05-08-2013, 04:51 PM
  3. Counting Unique Names based on Criteria
    By adamsiskin in forum Excel General
    Replies: 7
    Last Post: 08-15-2012, 04:55 PM
  4. [SOLVED] find identical names in list
    By chemicals-international in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2006, 10:20 AM
  5. Count Unique Names in list w/ Additional Criteria?
    By Nodak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-25-2005, 08:06 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