+ Reply to Thread
Results 1 to 8 of 8

Get names from another workbook based on name/date

  1. #1
    Registered User
    Join Date
    03-25-2019
    Location
    Suffolk UK
    MS-Off Ver
    Excel 2016
    Posts
    25

    Get names from another workbook based on name/date

    I have 2 workbooks that are used for staff rotas (A & B). In both Rotas the layout is shown as: names in Column A A2:A7 dates in Row 1 A2 :NL2. Shifts are shown as D, E, M or N

    In Rota A there is a cell to input a date and the rota scrolls across to that date.

    I would like it to then show the names of staff on shift for the same date from Rota B.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Get names from another workbook based on name/date

    B12 =INDEX(B!$B$3:$G$14,MATCH(A!B1,B!$B$3:$B$13,0),MATCH(A!B2,B!$B$3:$G$3,0))

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    03-25-2019
    Location
    Suffolk UK
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: Get names from another workbook based on name/date

    OK thank you for that but that isn't quite what I was looking for.

    In Cell B1 enter a Name from Name 1 to Name 5. In Cell B1 enter a date.

    In B12:B21 I would expect to see Name 6 to Name 16 from sheet B

    Example:

    Cell B1 enter Name 1, Cell B2 1/4/20

    In B12:B21 I would want to see Name 6, Name 9, Name 12 and Name 14 from sheet B

    Many thanks

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Get names from another workbook based on name/date

    I am not sure that I understand what role the name in cell B1 plays however based on the expected results given in post #3, try the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    03-25-2019
    Location
    Suffolk UK
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: Get names from another workbook based on name/date

    Thank you....yes good idea to ignore the name input!!

    So yes it does wok.....is it possible to add a little change?

    Is it possible to ignore not only the blank cells but also if a cell has text that starts with the letter H. ie has H as its first character?

    H indicates holiday so would not be at work on shift on that dat.

    Many thanks in advance

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Get names from another workbook based on name/date

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

    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    03-25-2019
    Location
    Suffolk UK
    MS-Off Ver
    Excel 2016
    Posts
    25

    Re: Get names from another workbook based on name/date

    OK that works thank you!!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Get names from another workbook based on name/date

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Looking up a list of names based on the date
    By kTY_0 in forum Excel General
    Replies: 3
    Last Post: 10-04-2018, 10:32 AM
  2. [SOLVED] Copy sheet from another workbook based on ComboBox names of the Workbook and sheet
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2016, 10:07 AM
  3. [SOLVED] Listing Worksheet Names based on a Workbook Name
    By The Exceller in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2013, 01:35 PM
  4. Retrieving Offset Values from Secondary Workbook based on Names
    By Kouk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2012, 07:50 PM
  5. Replies: 2
    Last Post: 09-20-2010, 02:51 PM
  6. Changing Workbook names in VBA based on Open Workbook
    By peakymatt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2009, 12:06 AM
  7. Replies: 2
    Last Post: 04-08-2007, 02: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