+ Reply to Thread
Results 1 to 6 of 6

Looking up dates on a separate sheet

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Looking up dates on a separate sheet

    Hello,

    On Sheet 1 (Data), I have a list of 40 names in column A. Starting in column B, there is a listed date. For each person, there might be only 2-3 dates (each in it's own column) or as many as 30 separate dates.
    On Sheet 2 (Leave), Column A is the same list of names, and Row B1 lists every day of the year. I am looking for the formula to place in Leave! that will look for the name on Data! and the dates listed next to that name and place an "X" in the corresponding cell for the date on Leave!.

    For example:
    Data!
    A1 B1 C1
    John Smith 1/1/2016 1/5/2016
    Tom Allan 1/2/2016 1/3/2016

    Leave!

    A1 B1 C1 D1 E1 F1
    1/1/2016 1/2/2016 1/3/2016 1/4/2016 1/5/2016
    John Smith X X
    Tom Allan X X


    Any help would be greatly appreciated!!

    EDITED: My example doesn't look the way I originally wrote it, and I am unable to attach an example.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Looking up dates on a separate sheet

    Here is a pic of what your example looks like

    tABLEeXAMPLE.JPG

  3. #3
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Looking up dates on a separate sheet

    Yes. Thank you so much!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Looking up dates on a separate sheet

    Can you post a SMALL sample file and show us what result you expect?

    A SMALL file will have about 20 rows worth of data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Looking up dates on a separate sheet

    It is exactly what davesexcel posted above. That is how I want the end result to look. The formula should generate the X in each of the corresponding cells on the Leave sheet.

    The Data sheet would just look like this:

    A B C D E
    John Smith 1/1/2016 1/5/2016 1/15/2016 1/25/2016
    Tom Allan 1/2/2016 1/3/2016 1/9/2016 1/11/2016
    Joan Jones 1/4/2016 1/5/2016 1/9/2016 1/27/2016


    I don't have the ability to attach a file from the computer I am on.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Looking up dates on a separate sheet

    See if you can adapt this...

    Data Range
    A
    B
    C
    D
    E
    F
    1
    1/1/2016
    1/2/2016
    1/3/2016
    1/4/2016
    1/5/2016
    2
    Name1
    X
    X
    3
    Name2
    X
    X
    4
    5
    6
    Name1
    1/1/2016
    1/5/2016
    7
    Name2
    1/3/2016
    1/4/2016


    This formula entered in B2:

    =IF(ISNUMBER(MATCH(B$1,INDEX($B$6:$F$7,MATCH($A2,$A$6:$A$7,0),0),0)),"X","")

    Copy down as needed then across as needed.

+ 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. Populating list of dates from another sheet with Start Dates and End Dates
    By Jesshloly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 04:07 AM
  2. Replies: 0
    Last Post: 08-06-2015, 10:33 AM
  3. [SOLVED] Separate Dates by Month
    By jeck876 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2015, 03:24 PM
  4. [SOLVED] Match Multiple Columns from Separate Sheet to get separate column.
    By gvitoro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2014, 03:38 PM
  5. Replies: 2
    Last Post: 08-04-2010, 07:36 PM
  6. Separate dates/times by specifics
    By Buzzby in forum Excel General
    Replies: 5
    Last Post: 11-16-2009, 07:22 AM
  7. [SOLVED] Formatting to separate dates
    By Phippsy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-21-2006, 12:20 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