+ Reply to Thread
Results 1 to 8 of 8

return text based on a value in =Today() column header

  1. #1
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    return text based on a value in =Today() column header

    Hello! I have an automated attendance sheet. I need a formula when if an employee is on duty "D" in the {=Today()} column, the employee name should appear in the duty table. Thank you!
    Attached Files Attached Files
    Last edited by florin119; 03-22-2022 at 01:15 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-24-2020
    Location
    Thailand
    MS-Off Ver
    Office 2024
    Posts
    996

    Re: return text based on a value in =Today() column header

    Hi there,

    Please refer to the attached file.

    We can use a combination of Index/Match where we use the DAY to offset the columns.
    The formula below will return the first matching result. By changing the very last '1' to a '2' we get the second match for the "D".
    This is an array formula, hence is entered by pressing Ctrl + Shift + Enter keys simultaneously.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cheers..
    Attached Files Attached Files
    If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,008

    Re: return text based on a value in =Today() column header

    AJ11=FILTER($B$7:$B$25,INDEX($C$7:$AG$25,,MATCH(AJ$6,$C6:$AG6,0))="D")

    Copy across
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    Re: return text based on a value in =Today() column header

    Thank you ORoos for your reply! It works !

  5. #5
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    Re: return text based on a value in =Today() column header

    Thank you CARACALLA for your reply! It works !

  6. #6
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    Re: return text based on a value in =Today() column header in Office 2007

    Is there a way to apply this formula --- AJ11=FILTER($B$7:$B$25,INDEX($C$7:$AG$25,,MATCH(AJ$6,$C6:$AG6,0))="D") --- in MS Office 2007? I have an old workstation that I can't update to MS Office 365. Thank you!
    Last edited by florin119; 03-21-2022 at 11:07 AM.

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,008

    Re: return text based on a value in =Today() column header

    AJ11=IFERROR(INDEX($B$7:$B$25,SMALL(IF($C$7:$AG$25="D",IF($C$6:$AG$6=AJ$6,ROW($B$7:$B$25)-ROW($B$7)+1)),ROWS($B$7:B7))),"")

    Control+shift+enter

    copy across and down

  8. #8
    Registered User
    Join Date
    03-18-2022
    Location
    Romania
    MS-Off Ver
    365
    Posts
    8

    Re: return text based on a value in =Today() column header

    Thank you for your expertise! I appreciate your effort and time! Best wishes!

+ 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: 1
    Last Post: 05-08-2021, 11:09 PM
  2. [SOLVED] Return a text based on today's date (not considering year)
    By ricdamiani in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2018, 07:19 AM
  3. [SOLVED] Deleting column based on Column header date less than today
    By daryl83 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2017, 02:44 PM
  4. Return a column header based on text in a cell
    By sdeel1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2016, 03:02 PM
  5. Return column header based on column criteria and number value
    By bwill22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2014, 07:33 PM
  6. [SOLVED] Return Value from column based on header value
    By SAsplin in forum Excel General
    Replies: 5
    Last Post: 07-16-2013, 07:46 AM
  7. [SOLVED] Return header column text if value in row below
    By Adrian W in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-20-2012, 09:05 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