+ Reply to Thread
Results 1 to 3 of 3

Return Column title for table dates

  1. #1
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Return Column title for table dates

    Hello guys,

    i have table with multiple columns and multiple row that have dates for them like the table below:

    Start First Half Second Half End
    V1 20-Apr-17 23-Apr-17 27-Apr-17 30-Apr-17
    V2 20-May-17 23-May-17 27-May-17 30-May-17
    V3 20-Jun-17 23-Jun-17 27-Jun-17 30-Jun-17
    V4 20-Jul-17 23-Jul-17 27-Jul-17 30-Jul-17

    Based on the current date and cell X10(that contains one of the items from the first column of the above table (V1-V4)) to return the column name
    - If the date is between "Start" and "First Half" the result should be "Start" and so on

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,146

    Re: Return Column title for table dates

    Try

    =IFERROR(INDEX($B$1:$E$1,MATCH(TODAY(),INDEX($B$2:$E$4,MATCH($X$10,$A$2:$A$4,0),0),1)),"")

    See attached.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-13-2017
    Location
    Buchares
    MS-Off Ver
    2016
    Posts
    117

    Re: Return Column title for table dates

    Thank you John.

    It works perfectly

+ 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] How to Return Title of Row based on Ranking in Table?
    By Invicta084 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-19-2015, 08:37 PM
  2. [SOLVED] Compare dates with a table of years and return value from adjacent column
    By jonus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-25-2015, 07:35 AM
  3. Looking to return column title of second largest value
    By JoJenkins in forum Excel General
    Replies: 1
    Last Post: 02-05-2014, 05:30 PM
  4. Return the Title of a column if the column is the highest column with data
    By williamspage in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2013, 10:05 AM
  5. Return dates from a column heading in a table of arrows
    By Beeblebrox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2012, 09:12 PM
  6. Return column title if value present
    By ChrisMattock in forum Excel General
    Replies: 13
    Last Post: 08-14-2009, 11:48 AM
  7. Find max value in a row and return column title
    By Jshendel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-21-2006, 12:25 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