+ Reply to Thread
Results 1 to 15 of 15

Creating a list from Table matches ?

  1. #1
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Creating a list from Table matches ?

    Worksheet Help.png

    If you look at the table above, i need a way of listing the people who have A/L against their name on a given day. Is there an easy formula / function to do this ? I have attached a sample file. The main file has a lot more lines to search from. But i'd like it so it produces a list as it finds them. Any help or guidance would be greatly appreciated.
    Attached Files Attached Files
    Last edited by LlanfairPG; 09-08-2021 at 10:33 AM.

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,666

    Re: Creating a list from Table matches ?

    I’m sure there will be once you attach a sample workbook instead of an image.

    Please go back and say ‘thanks’ in your previous thread and mark it as solved, if indeed it is: https://www.excelforum.com/excel-for...ct-syntax.html We expect some feedback when help is offered. Thank you.
    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
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    I've just included a sample file.

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,666

    Re: Creating a list from Table matches ?

    With the day you want in L3, try this:

    =FILTER($C$4:$C$11,FILTER($D$4:$I$11,$D$3:$I$3=L3)="A/L")

    AliGW on MS365 Insider (Windows) 32 bit
    L
    M
    3
    MON John Doe 1
    Sheet: Sheet1
    Attached Files Attached Files
    Last edited by AliGW; 09-08-2021 at 10:47 AM. Reason: Typo

  5. #5
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    When i look at the formula it shows it as:

    {=_xlfn._xlws.FILTER($C$4:$C$11,_xlfn._xlws.FILTER($D$4:$I$11,$D$3:$I$3=L3)="A/L")} ?

    and gives me a #NAME? error ?
    Last edited by AliGW; 09-08-2021 at 11:05 AM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,666

    Re: Creating a list from Table matches ?

    Then you are not using MS365, as stated in your profile. We offer solutions based on that information. Which version do you have/are you using?

  7. #7
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    apologies, i go between versions on different computers. The one i'm currently using is 2016

  8. #8
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,666

    Re: Creating a list from Table matches ?

    OK - I have run out of time now (going to watch some tennis). Hopefully someone else will pick this up.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: Creating a list from Table matches ?

    See attached

    in K4

    =IFERROR(INDEX($C$4:$C$11,AGGREGATE(15,6,(ROW($A$4:$A$11)-ROW($A$4)+1)/(D$4:D$11="A/L"),ROWS($1:1))),"")

    copy across and down
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    Your formula works a treat. Thank you so much

  11. #11
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    How would i make it match more than 1 item, say instead of "A/L", if i had variants of "Day Off", "Off", "Off A", "Toil". But i wanted them all listed in the same list ?

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: Creating a list from Table matches ?

    One way

    =IFERROR(INDEX($C$4:$C$11,AGGREGATE(15,6,(ROW($A$4:$A$11)-ROW($A$4)+1)/((D$4:D$11="A/L")+(D$4:D$11="DAY OFF")),ROWS($1:1))),"")

    Put criteria a range of cells (R1:R5)

    =IFERROR(INDEX($C$4:$C$11,AGGREGATE(15,6,(ROW($A$4:$A$11)-ROW($A$4)+1)/((D$4:D$11=R$1)+(D$4:D$11=R$2)),ROWS($1:1))),"")
    Last edited by JohnTopley; 09-08-2021 at 04:10 PM.

  13. #13
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    Thank you for your suggestion, but it seems to only work with the first term in the formula and ignores any others i try to add into it.

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: Creating a list from Table matches ?

    See attached.

    =IFERROR(INDEX($C$4:$C$11,AGGREGATE(15,6,(ROW($A$4:$A$11)-ROW($A$4)+1)/((D$4:D$11=$R$1)+(D$4:D$11=$R$2)),ROWS($1:1))),"")

    My typo
    Attached Files Attached Files
    Last edited by JohnTopley; 09-09-2021 at 01:00 AM.

  15. #15
    Registered User
    Join Date
    03-28-2020
    Location
    LlanfairPG
    MS-Off Ver
    2016
    Posts
    30

    Re: Creating a list from Table matches ?

    Thank you so much it worked perfectly
    Last edited by AliGW; 09-09-2021 at 05:16 AM. Reason: PLEASE don't quote unnecessarily!

+ 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. Creating a non blank list from vertical table to horizontal table (non array)
    By boredinosaur in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-12-2021, 12:06 AM
  2. [SOLVED] Want to extract partial matches from a list and add to existing list of retreived matches
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-29-2019, 02:31 PM
  3. [SOLVED] Creating a list from a table
    By IsuckatXL in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-23-2018, 10:19 PM
  4. [SOLVED] Summing the matches of one column only if its corresponding description matches a list
    By bishop-jese-erl in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-19-2015, 04:26 PM
  5. [SOLVED] Populate a table from a list that has multiple matches
    By bbatterman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2014, 01:48 PM
  6. Replies: 9
    Last Post: 02-26-2014, 04:17 PM
  7. Replies: 5
    Last Post: 10-02-2012, 10:29 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