+ Reply to Thread
Results 1 to 5 of 5

Formula to Return Header Name Based on Date Range

  1. #1
    Registered User
    Join Date
    07-26-2006
    Posts
    82

    Formula to Return Header Name Based on Date Range

    Hello,
    I am working on a basic schedule that incorporates numerous jobs each job has its own row and each job has 6 tasks associated (start dates). The schedule also has a countdown in days for when the next task is supposed to start. The tasks are chronological (i.e. task 1 always starts before task 2) but the start dates of Task 1 themselves are random.

    See spreadsheet for example.

    I am trying to summarize each job by the next task date. I have used a MIN function to return the date, but trying to return the Task Name from the header is a bit trickier.
    This is only a partial list. The list will end up being 50+.

    Any suggestions? Thank you advance.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    32,219

    Re: Formula to Return Header Name Based on Date Range

    Untested, but something like
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down.
    Trevor Shuttleworth - Excel Aid

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-26-2006
    Posts
    82

    Re: Formula to Return Header Name Based on Date Range

    Thanks for the response. The formula provided actually returns the "Days Rem" in the header, but with a small modification, it works!

    So the formula (base on the model originally provided) now looks like: =INDEX($H$6:$S$6, MATCH(MIN($C7, $H7:$S7, 0))

    Thank you for pointing me in the right direction! It is truly appreciated!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2003,2007,2010
    Posts
    32,219

    Re: Formula to Return Header Name Based on Date Range

    Ah, that's what you get when you work it out from basic principles on an iPad and, consequently, can't test it. Missed the fact that there are some relatively small values in the mix compared to dates. And also overlooked the point that you'd already calculated your minimum date value

    Anyway, MIN not required. Simply:
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Valued Forum Contributor
    Join Date
    08-15-2020
    Location
    malaysia
    MS-Off Ver
    office2007
    Posts
    518

    Re: Formula to Return Header Name Based on Date Range

    D7 cell formula , drag down
    HTML Code: 
    =INDEX($H$6:$S$6,MATCH(MIN($H7:$S7),$H7:$S7,)-1)

+ 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] Formula to return value based on date range table
    By lucasc10 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2020, 10:35 AM
  2. Check a date range and return value based on the date range
    By KeithCar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2015, 12:55 PM
  3. Formula to return values based on criteria and date range
    By jr217 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 06:20 AM
  4. [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
  5. Replies: 6
    Last Post: 07-26-2012, 06:34 PM
  6. formula to return a year based on a date range
    By bankster in forum Excel General
    Replies: 12
    Last Post: 03-30-2012, 04:24 AM
  7. Help with Formula to return running YTD total based on a date range
    By RubiksCuber in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2012, 06:09 PM

Tags for this Thread

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