+ Reply to Thread
Results 1 to 5 of 5

returning date from column based on max value in a row

  1. #1
    Registered User
    Join Date
    05-13-2008
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2016
    Posts
    10

    returning date from column based on max value in a row

    The title may sound convoluted, but I hope this is a pretty simple request.

    I am entering in daily data in one column per day. I'm using a simple subtraction formula to determine new daily counts in three separate rows. The percent positive row is a direct-entry number. I'm using the MAX command to return the max value of a row to another cell, but what I want do is return the date associated with that same max value to a different cell. Any guidance is appreciated!



    case demo.xlsm

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: returning date from column based on max value in a row

    in A5, copied down:

    =INDEX($D$1:$Z$1,MATCH(B5,$D5:$Z5,0))


    I'd also change H6 (copied down) to:

    =IF(I2="","",I2-H2)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: returning date from column based on max value in a row

    Populate A5 with this formula, and drag it up and down as you need

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    05-13-2008
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2016
    Posts
    10

    Re: returning date from column based on max value in a row

    thank you so much!

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: returning date from column based on max value in a row

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

+ 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] Searching column, returning value to adjacent column based on search result in cells (VBA)
    By FalanxZealot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2020, 05:55 AM
  2. Returning Date based off Value
    By KevinYuen08 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2019, 12:45 PM
  3. [SOLVED] Retrieving data based on nth column of array and returning first column value
    By truck'ems in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-26-2017, 05:52 PM
  4. Returning a value based on the date
    By sungen99 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-01-2015, 12:44 PM
  5. [SOLVED] Returning all the values in a column based on the column header
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 11:19 AM
  6. Returning Values based on date falling between Date ranges
    By honest1122 in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 05:10 PM
  7. Excel 2007 : Returning Value Based on Changing Date
    By aram87 in forum Excel General
    Replies: 2
    Last Post: 02-11-2010, 04:46 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