+ Reply to Thread
Results 1 to 9 of 9

search multiple criteria and return multiple values within the same cell

  1. #1
    Registered User
    Join Date
    08-10-2014
    Location
    Perth,Australia
    MS-Off Ver
    2010
    Posts
    18

    search multiple criteria and return multiple values within the same cell

    Hi group
    I am hoping you can help me with this

    I have been trying for several days now and I am not able to get the solution
    It is probably something very simple for the experts here , I am hoping that you can kindly help me with this

    The sheet "test" has tasks in the header from E2 to AQ2
    This will be the first search criteria

    The columns A B or C has dates
    one of the columns can be used as the second search criteria

    we need to look up these 2 values against sheet 1 and find matching job numbers
    There might be multiple job numbers that will be returned

    The job numbers need to returned and entered within the same cell against that date & the corresponding task on the Sheet "test"

    please see if you can help

    Best Regards
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: search multiple criteria and return multiple values within the same cell

    This will either be horrible or will require VBA in your excel version. Please confirm your current version & amned your user profile, as needed.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: search multiple criteria and return multiple values within the same cell

    Your calculation column is also full of links to external files. That's no use to us. The sample should be 10-20 rows and complete in itself. Please amend and reattach with some manually calculated expected results.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: search multiple criteria and return multiple values within the same cell

    So, I went ahead and assumed that you're still using an older Excel version and I set up a macro-based solution. Enable macros on opening.

    Take a look and see if it works for you. Then I can explain/.alter depending on your Excel version.

    Advice: never set up a table to include the entire column, unless you do have 1000,000+++ rows of data. the table will auto-extend as you add data.


    These are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see the curly brackets { } appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...

    ***IF*** you are now using Office 365, this is much, much easier.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 01-15-2022 at 06:50 AM.

  5. #5
    Registered User
    Join Date
    08-10-2014
    Location
    Perth,Australia
    MS-Off Ver
    2010
    Posts
    18
    Can it be achieved without macros
    With company security and that, it might be better without macro
    I was able to the match and find the entries using index small, match, couldn't get the job nos in the same cell though

    Can you please assist
    Last edited by AliGW; 01-15-2022 at 07:24 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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: search multiple criteria and return multiple values within the same cell

    Are you confirming that you are still using Excel 2010? If not, what? This is important, so we need an answer.
    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.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: search multiple criteria and return multiple values within the same cell

    Yes... with O365, otherwise, no. If you're not using O365, you'd need a lot of helper columns.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: search multiple criteria and return multiple values within the same cell

    No response...

    This works for O365.

    =TEXTJOIN(", ",,FILTER(Table1[[Job no]:[Job no]],(Table1[[Task]:[Task]]=test!E$2)*(Table1[[date]:[date]]=test!$B7),""))

    If you can't use VBA and don't have this version.. can you define the MAXIMUM number of jobs in the ONE cell.
    Attached Files Attached Files

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: search multiple criteria and return multiple values within the same cell

    1. You sent me a PM saying that you were using O365. Here are instructions on ghow to update your profile, so Qs here can be answered as efficiently as possible.

    2. Please check out the solution offered at Post #8, which should be fine in your Excel version.
    Attached Images Attached Images

+ 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. Replies: 3
    Last Post: 08-17-2019, 05:53 AM
  2. Replies: 5
    Last Post: 05-27-2019, 03:46 PM
  3. [SOLVED] Return Multiple values from a column with index and match, and search criteria
    By marcusduton in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 02-15-2015, 09:59 PM
  4. [SOLVED] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  5. [SOLVED] Return multiple values using three search criteria
    By knightjob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2014, 03:25 PM
  6. Replies: 2
    Last Post: 05-12-2014, 08:21 AM
  7. [SOLVED] How to return multiple values that match a single search criteria?
    By JSallen in forum Excel General
    Replies: 4
    Last Post: 11-28-2012, 11:49 AM

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