+ Reply to Thread
Results 1 to 5 of 5

Locate a date within a date range from another sheet

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Locate a date within a date range from another sheet

    I have 2 sheets in my workbook.
    1. "not available" is a list of people and week ranges. there are is an 'x' placed in the week range that the person is unavailable.
    2. "holidays" same list of people and dates of holidays/conferences/meetings in the year.

    What I'm trying to do is 2-fold:
    1. locate a "holiday" date within the date range in the "not available" sheet, THEN
    2. if there is an 'x' for a person (e.g. JOE) during a date range (6/28/2014-7/4/2014), and a holiday date (7/4/2014) falls within that range, an 'x' also appears for Joe in the holiday sheet for that date..

    I hope that makes sense. I've attached "schedule sample".

    (I've tried to do just start dates, rather than a week range, which worked for a single date. But if there are multiple holidays/conferences/meetings that could spread across multiple date ranges, I get a #value!)
    Attached Files Attached Files
    Last edited by kserr001; 03-18-2014 at 08:00 PM.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Locate a date within a date range from another sheet

    In your "Not available" sheet, you only need the first day of the week in each column. The next column is a week later so it the previous cell plus 7 days.
    With your table set up this way it is easier to calculate if someone is available at a specific date.
    See attached workbook and formulas.
    Regards
    Attached Files Attached Files
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Locate a date within a date range from another sheet

    Thank you!! It worked!!
    Now I'm running in to a #n/a error message when I move in to holidays/meetings that fall in 2015.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Locate a date within a date range from another sheet

    make sure your last column in the "Not Available" table has a date far enough so you don't get this message. Instead of an X in this column you can put a special character or a word to warn you that it falls off you current date table.

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Locate a date within a date range from another sheet

    I figure it out! The year dates on my Holidays were incorrect.

    Thank you so much p24leclerc!!!

+ 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: 2
    Last Post: 01-04-2012, 09:15 AM
  2. Locate Today's Date Within Row on Opening Workbook
    By liam_bettinson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2011, 06:07 AM
  3. Locate a max from range defined in other sheet in workbook
    By yasmine26 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-11-2008, 12:29 PM
  4. [SOLVED] Locate month n year from range of date
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-02-2006, 05:20 AM
  5. [SOLVED] Locate month and year from range of date from another sheet
    By Rao Ratan Singh in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-01-2006, 04:00 AM

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