+ Reply to Thread
Results 1 to 8 of 8

Retrieving text from a reference table based on multiple criteria

  1. #1
    Registered User
    Join Date
    10-09-2018
    Location
    Montreal, Canada
    MS-Off Ver
    2016
    Posts
    87

    Retrieving text from a reference table based on multiple criteria

    Hello,

    Please see attached a sample workbook, which would involve a complex formula that I am having lots of trouble with.

    The goal here is to extract ID's that either changed programs, remained in the same program, or never returned after any of the 4 withdrawals that have occurred.

    You will notice two sections. One desired result is to extract the program in which the ID has withdrawn. The other is to extract the program when ID returned.

    I tried to make this as clear as possible.

    Thank you to whoever can help me out

  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
    44,036

    Re: Retrieving text from a reference table based on multiple criteria

    The first part (maybe)...

    In c2, copied across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Please explain why your expected answer for 21086 is Shake, and not Stock/Shake
    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
    Registered User
    Join Date
    10-09-2018
    Location
    Montreal, Canada
    MS-Off Ver
    2016
    Posts
    87

    Re: Retrieving text from a reference table based on multiple criteria

    Thank you Glen,

    I will see how the answer you provided works in the complete list of ID's I have.

    Please see the updated sample workbook (error on my part). Does this answer your question? If so, shall I re-post my correct workbook? Is there a way I can replace it in my initial post?

  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
    44,036

    Re: Retrieving text from a reference table based on multiple criteria

    OK. That makes sense!! Currently looking at Part 2 and feeling the need for some strong coffee...

    No need to change the earlier post. In fact better it's better NOT to, after a reply has been made

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Retrieving text from a reference table based on multiple criteria

    Please try C2:E6
    Similar to Glenn's formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    F2:H6

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    18028 2012-2013 has 2 program in 2013-2014 for Furnisher Craftsman, not sure you put "did not return"

    If you delete that 2 row F4 will show "did not return"

  6. #6
    Registered User
    Join Date
    10-09-2018
    Location
    Montreal, Canada
    MS-Off Ver
    2016
    Posts
    87

    Re: Retrieving text from a reference table based on multiple criteria

    Thank you Bo.

    I apologize. You are correct, row 14 and row 15 do not belong in reference table or at least should of been different ID's.

    Thanks for quick response. Allow to me to review and reply.

  7. #7
    Registered User
    Join Date
    10-09-2018
    Location
    Montreal, Canada
    MS-Off Ver
    2016
    Posts
    87

    Re: Retrieving text from a reference table based on multiple criteria

    Hi Glenn and Bo,

    I have attached the wrong file! Using "withdraw" wont work properly, as there are different types of withdrawals that are spelled very different. That is why I updated the file. Please see attached.

    Thank you and Glenn I hope you having some more strong coffee!

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Retrieving text from a reference table based on multiple criteria

    How about this C2 use just "withd"

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Retrieving a text string based on multiple criteria
    By McKneezy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2019, 04:41 PM
  2. Replies: 22
    Last Post: 12-03-2018, 07:02 AM
  3. Replies: 40
    Last Post: 08-29-2018, 01:36 PM
  4. Replies: 1
    Last Post: 10-11-2016, 07:38 PM
  5. [SOLVED] List of text from table based on multiple criteria
    By Jkaen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2016, 06:53 AM
  6. reference a value from a table based on two different criteria
    By VBAhelp3456 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-16-2015, 10:25 PM
  7. Reference certain cells in a table based on cell criteria
    By Mr_Bill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2014, 11:21 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