+ Reply to Thread
Results 1 to 21 of 21

Get task list from other sheets based on specific criteria

  1. #1
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Get task list from other sheets based on specific criteria

    Hello experts,

    I have 4 different tabs in sheets for 4 different departments, which lists different tasks. The format is same for all 4 sheets, having headers as Project Name, Owner, Area, IssueDate, Task Type, Status, Comments.

    I need to list all the tasks in a new tab (Task List) which should list only the tasks from first 4 sheets based on the status and owner.
    For example,
    - from 1st sheet I want to see the task owned by John and whose status is either "On Track" or "Delayed"
    - from 2nd sheet I want to see the task owned by Jacob and whose status is either "On Track" or "Delayed"
    - from 1st sheet I want to see the task owned by Oliver and whose status is either "On Track" or "Delayed"
    - from 1st sheet I want to see the task owned by Samantha and whose status is either "On Track" or "Delayed"

    So basically all the running tasks owned by these 4 people should come in "Task List" tab.
    Output table should be in same format as other sheets. See attached samplefile.

    Can someone please help me in achieving this?

    Thanks a lot.

    Cheers
    Puneet
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Get task list from other sheets based on specific criteria

    This would be far simpler if all data was on the same sheet - is that an option you would consider?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    Hello FDibbins,

    Thanks for replying to thread. I know putting on same sheet would help but different department has to use different sheets otherwise my many other objectives will not be achieved.
    Would creating a dummy sheet in the end with all the entries form first 4 sheets help somehow?

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Get task list from other sheets based on specific criteria

    Why just the four people mentioned? What's the rationale for choosing them?
    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.

  5. #5
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    Its because i need to see only the tasks which my team has. So i should be able to chose the task owner.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,933

    Re: Get task list from other sheets based on specific criteria

    How do we know which team each person is in? Where is this listed?

  7. #7
    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,933

    Re: Get task list from other sheets based on specific criteria

    PowerQuery Solution

    I created a team list on the validation source tab and merged it with the merged data tables (this does not account for the fact that there appear to be two different Johns based on your sample results, so they would need identifying properly).

    Main Query M Code:

    Please Login or Register  to view this content.
    Team Query M Code:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    For now I am assuming there will be no more than 1 name in different teams, so team is not important. But how you got the output in task list tab, that I did not understand.
    Last edited by puneet829; 07-07-2020 at 03:51 AM.

  9. #9
    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,933

    Re: Get task list from other sheets based on specific criteria

    I just created that list myself based on the names you gave us. I needed this to filter to your team. Without it, I'd have had to filter the query to the four names, which would work fine, but isn't so reliable going forward if the team changes - better to have a lookup list somewhere for the query to reference.

  10. #10
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    Yes, you are right. for future, it would be a good idea.
    Can you tell me how to implement this?

  11. #11
    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,933

    Re: Get task list from other sheets based on specific criteria

    All you need is a two-column list - names in one column, team name in the other. That's it. Are you actually asking for the PowerQuery steps?

  12. #12
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    No, I dont know about Power Query.
    I am referring back to my original question. I am still standing where I was

    I just need the output as i mentioned.

    Thanks

  13. #13
    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,933

    Re: Get task list from other sheets based on specific criteria

    OK - so are you saying that you don't want to use the PowerQuery solution, even though it gives the output you mentioned?

  14. #14
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    Ok, I will use it if you can tell me how to

  15. #15
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    Can I ask you to make the changes as you said in the sheet and send to me? I would really appreciate it.

  16. #16
    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,933

    Re: Get task list from other sheets based on specific criteria

    There are no changes to make. Everything I know about your teams is already set up in the sample file. Or are you asking me to filter it on names instead of using the team list? I'm really not clear what you want and what you don't want.

  17. #17
    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,933

    Re: Get task list from other sheets based on specific criteria

    Here is a version that is filtered purely on the four names with no lookup list.

    There are links in my signature line for you to follow to learn more about PowerQuery and how it works.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    What I want is....that in samplefile you sent me, if i change the task status to delivered, lets say in Dept1 tab, I change the status for task ABC1 which John has to "delivered", the output should not show me that task in list.
    But when i change it, nothing happens to output list.

  19. #19
    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,933

    Re: Get task list from other sheets based on specific criteria

    You have to refresh the query (Data ribbon - Refresh All). This can be automated if you need it to be.

  20. #20
    Registered User
    Join Date
    07-06-2020
    Location
    Denmark
    MS-Off Ver
    Microsoft 365
    Posts
    12

    Re: Get task list from other sheets based on specific criteria

    It works. Thanks a lot.

  21. #21
    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,933

    Re: Get task list from other sheets based on specific criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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 Unique List based on specific criteria
    By Dan79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2017, 09:37 AM
  2. [SOLVED] Move data to specific sheets based on value against a list
    By daveb86 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-16-2014, 03:27 PM
  3. [SOLVED] Create unique list based on specific criteria
    By Joynesy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-21-2013, 05:54 AM
  4. Replies: 3
    Last Post: 06-24-2012, 02:01 AM
  5. VBA to copy data into other sheets based on specific criteria’s
    By humacdeep in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 01-31-2012, 09:12 AM
  6. List of other sheets based on criteria
    By Steve_Courts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2010, 01:44 AM
  7. Replies: 2
    Last Post: 11-20-2007, 04:42 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