+ Reply to Thread
Results 1 to 10 of 10

Formala for pulling values from another sheet where multiple vlookup search results exist

  1. #1
    Registered User
    Join Date
    09-24-2022
    Location
    Perth, Australia
    MS-Off Ver
    2021 PRO
    Posts
    13

    Post Formala for pulling values from another sheet where multiple vlookup search results exist

    Hi

    I was hoping to get help in creating a formula (e.g. vlookup, or something else) for pulling in values into a sheet where the date matches the search.

    However, the issue I have is that multiple dates can exist.

    I have created a sample sheet. So, if I enter a date in the "Input date" sheet, I'd like details to be filled automatically with a formula in the "Job 1", "Job 2" and "Job 3" tabs, by pulling data from the "Bookings" tab.

    E.g. if I was to enter 1 October 2022 in the "Input sheet" date, how is it possible for George's details to come on "Job 1", Sally's details on "Job 2" and Adam's details on "Job 3"?

    Many thanks!
    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,986

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    Job1:

    =INDEX(TRANSPOSE(FILTER(Bookings!$C$5:$F$9,Bookings!$B$5:$B$9='Input date'!C5)),,1)

    Job2:

    =INDEX(TRANSPOSE(FILTER(Bookings!$C$5:$F$9,Bookings!$B$5:$B$9='Input date'!C5)),,2)

    and so on...
    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
    09-24-2022
    Location
    Perth, Australia
    MS-Off Ver
    2021 PRO
    Posts
    13

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    Thanks very much Glenn.

    Is there a way to match the columns, (like an index match or something?), e.g. in the attached updated sample, in the "Job 1" tab, I have some empty rows between row 9 and row 12. I'd like the result to show for "booking order 1-3" at cells C12:C14, but only when there is something ordered, as shown in the "Bookings" tab?
    Attached Files Attached Files

  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,986

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    =TRANSPOSE(INDEX(FILTER(Bookings!G5:I9,Bookings!$B$5:$B$9='Input date'!C5),1)&"")

    etc...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-24-2022
    Location
    Perth, Australia
    MS-Off Ver
    2021 PRO
    Posts
    13

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    Thanks again Glenn.

    Sorry, I was hoping for some formula (if possible), to match against the field being searched...

    I've attached a new sample. As you can see, there are some fields in the "Bookings" sheet that shouldn't appear in "Job 1", "Job 2", "Job 3" etc.

    I also have some empty rows in the "job" sheets between Booking order 1, etc.

    Is an index/match or some other vlookup/hlookup/aggregate formula possible to achieve this?

    Thanks in advance!
    Attached Files Attached Files

  6. #6
    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,986

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    Any other U-turns planned???

  7. #7
    Registered User
    Join Date
    09-24-2022
    Location
    Perth, Australia
    MS-Off Ver
    2021 PRO
    Posts
    13

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    No other u-turns planned :P

  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,986

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    =FILTER(INDEX(TRANSPOSE(FILTER(Bookings!$C$5:$G$9,Bookings!$B$5:$B$9='Input date'!C5)),,1),{1;1;0;1;1})

    and

    =FILTER(TRANSPOSE(INDEX(FILTER(Bookings!$I$5:$K$9,Bookings!$B$5:$B$9='Input date'!C5),1)&""),{1;0;0})

    changing the bits in red appropriately for each SHEET and the bits in BLUE for each B.O. Done for Job 1.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    09-24-2022
    Location
    Perth, Australia
    MS-Off Ver
    2021 PRO
    Posts
    13

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    Thanks very much Glenn!

  10. #10
    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,986

    Re: Formala for pulling values from another sheet where multiple vlookup search results ex

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) 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. VLOOKUP - Pulling from one sheet to another based on matching values
    By rpreen1982 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2022, 11:34 AM
  2. Vlookup with multiple search results
    By Robbo66 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2020, 09:55 PM
  3. [SOLVED] Macro- Search multiple criteria in spreadsheet return with multiple results in new sheet
    By nicebeaches in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2018, 04:47 PM
  4. [SOLVED] Search multiple worksheets for search term and paste results in a summary sheet
    By Andy15 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-03-2017, 01:49 PM
  5. [SOLVED] Search sheet for values and add up values of found results
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-25-2017, 02:26 PM
  6. [SOLVED] Search multiple sheets and copy results to new sheet
    By augr in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-18-2014, 06:43 PM
  7. Replies: 5
    Last Post: 04-28-2014, 05:41 PM

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