+ Reply to Thread
Results 1 to 2 of 2

Find which date range a date is within and return another column

  1. #1
    Registered User
    Join Date
    05-08-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    1

    Find which date range a date is within and return another column

    Hello,

    Say I have two tabs in a spreadsheet. One has a list of boxes, the dates on which they were opened and the team member who opened them. The other has a list of the team members who open the boxes and when they were in which team (For example, Jenny moves from the Chickens team to the Ducks on October 25).

    I need to be able to find out which team opened which box. Any ideas??

    I have included example data in the attachment below.

    Thank you in advance.

    Jo.Excel Help.xlsx
    Last edited by APJo; 12-17-2014 at 07:47 PM.

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

    Re: Find which date range a date is within and return another column

    Try this...

    Data Range
    B
    C
    D
    E
    3
    Box
    Team Member
    Opening Date
    Team
    4
    Red Box
    Teddy
    5/31/2014
    Roosters
    5
    Blue Box
    Jenny
    6/6/2014
    Chickens
    6
    Green Box
    Teddy
    10/24/2014
    Roosters
    7
    Yellow Box
    Felicity
    7/15/2014
    Roosters
    8
    Pink Box
    Felicity
    2/3/2014
    Roosters
    9
    Orange Box
    Julia
    8/3/2014
    Ducks


    This array formula** entered in E4 and copied down:

    =INDEX(Teams!D$2:D$7,MATCH(1,(Teams!A$2:A$7=C4)*(D4>=Teams!B$2:B$7)*(D4<=Teams!C$2:C$7),0))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. [SOLVED] Find week days within the date range and return number
    By CaineSmith in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-06-2014, 03:47 PM
  2. [SOLVED] Find yesterdays date in range and return row number to be used in offset
    By graphicgoose in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-13-2014, 09:20 PM
  3. [SOLVED] Find a date within a date range and return the header
    By huy_le in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-03-2014, 06:09 PM
  4. [SOLVED] Find first date of the month in range and return column number
    By jben86 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-06-2013, 08:30 PM
  5. Replies: 2
    Last Post: 01-04-2012, 09:15 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