+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : find and match dates to return value

  1. #1
    Registered User
    Join Date
    02-04-2010
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2007
    Posts
    36

    find and match dates to return value

    Hi,

    On the 'project schedule' worksheet in the attached example, there are columns with date headings that can be populated by either an 'F', 'T', or '1' which correspond to a row for an employee. I need to display the next upcoming date populated with an 'F' (flight day) in the 'project schedule' in the 'next flight' cell of both the 'employees' and 'employee profile' worksheets for the matching employee. Is there a formula that would search and return the next upcoming 'F' on the worksheets?
    Attached Files Attached Files
    Last edited by colins; 02-11-2010 at 04:59 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: find and match dates to return value

    Try this in D2, then copy it down:

    =INDEX('Employee Profile'!$D:$D, MATCH($A2, 'Employee Profile'!$B:$B, 0) + 14)

    or...

    =IF($A2="", "",INDEX('Employee Profile'!$D:$D, MATCH($A2, 'Employee Profile'!$B:$B, 0) + 14))
    (this can be copied down much further without errors)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: find and match dates to return value

    Base on your request to lookup Project Schedule sheet..

    and assuming you enter name in column D of that sheet...

    try, in Employees!D2:

    Please Login or Register  to view this content.
    and in Employee Profile!D16:

    Please Login or Register  to view this content.
    then copy to each Next Flight cell down the list...

    Note: If you don't unmerge cells in column D, you will have to paste the formulas in the formula bar...and may have to adjust reference to name in column B....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    02-04-2010
    Location
    Vancouver, British Columbia
    MS-Off Ver
    Excel 2007
    Posts
    36

    Re: find and match dates to return value

    The first answer was close, thanks JBeaucaire, but the solution developed by NBVC seems to be exactly what I need. NBVC you came through for me again, thanks ever so much!

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: find and match dates to return value

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].

    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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