+ Reply to Thread
Results 1 to 5 of 5

Matching Value to Maximum Date in a Range

  1. #1
    Registered User
    Join Date
    09-10-2015
    Location
    Caringbah, NSW, Australia
    MS-Off Ver
    Office 365
    Posts
    43

    Matching Value to Maximum Date in a Range

    I need help with either a vlookup/hlookup or index/match formula to solve the following problem (and my brain just isn’t getting it together on this!)

    I have a table of values with the column headings as dates.
    In the column after the last value I need to insert the date of the column associated with the maximum value in that row.
    Example:

    Row 11 has dates in each column from J to U
    Row 30 has values (unsorted) in columns J to U
    I wish to insert (using a formula) in cell V30, the date from row 11 that corresponds to the MAXIMUM value in row 30 from columns J to U.
    So, if S30 was the maximum value the I wish to display the date from S11.

    Any ideas on how to do that?
    Last edited by AliGW; 02-28-2019 at 02:18 AM. Reason: Original post resinstated.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vlookup problem

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

    If the file that you are trying to attach is related to your other Vlookup query thread, https://www.excelforum.com/excel-for...lumn-data.html then you should attach your file to that thread and continue there. Starting multiple threads for the same question is against forum rules.

  3. #3
    Registered User
    Join Date
    09-10-2015
    Location
    Caringbah, NSW, Australia
    MS-Off Ver
    Office 365
    Posts
    43

    Re: Vlookup problem

    Not certain what you are talking about. I posted the questions and one of the options was to upload a (related) file, which I did.
    So what;s the problem?
    Did my question get posted at all? Was the uploaded file received?
    The question could have been answered without the attached file but I thought that by providing the file it would make it easier to see what I was attempting to resolve.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup problem

    I have reinstated the original text of your opening post, which should NOT have been removed.

    Maybe something like this?

    =INDEX(J11:U11,,MATCH(MAX(J30:U30),J30:U30,0))

    Note that the double comma is deliberate - don't change it to just one.

    If this doesn't work, attach the workbook WITHOUT post-editing any further posts. Thanks.

    I have also edited your title to bring it into line with our forum requirements. No generic titles using function names in future, please. Thanks..
    Last edited by AliGW; 02-28-2019 at 02:19 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vlookup problem

    Quote Originally Posted by USAOz View Post
    Not certain what you are talking about. I posted the questions and one of the options was to upload a (related) file, which I did.
    When I looked at your thread there was no file, just a single line of text, something like 'see attached'
    Quote Originally Posted by USAOz View Post
    So what;s the problem?
    there was no question, just an almost empty post. This suggested that your question and any explanation of your problem would be located in the file you were trying to attach.

    For this reason, I used a canned (pre-written) reply to inform you that we prefer if you only use attachments for data samples and that your question / explaination is entered directly into the thread. Given that there is only one canned reply which is worded so that it can be used for both questions and answers, I appreciate that it could be a bit misleading.

    Quote Originally Posted by USAOz View Post
    Did my question get posted at all? Was the uploaded file received?
    The thread was created but it contained nothing meaningful.
    Given that the only thing with any meaning was the mention of vlookup in the title, it appeared that you might have been restarting your previous question. For this reason, I added an extra comment to advise you that you should not start a new thread if that was the case. Given that you have now started another thread, which I have flagged as duplicate for locking, you clearly didn't understand this, so I guess maybe you neglected to read the rules that you agreed to follow when you joined the forum.

    Quote Originally Posted by USAOz View Post
    The question could have been answered without the attached file but I thought that by providing the file it would make it easier to see what I was attempting to resolve.
    Possibly, but not guaranteed. In most cases the answer is only as good as the question. More often than not there is a significant difference between an answer and 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. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. Another VLOOKUP problem
    By sdspieg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2013, 12:39 AM
  4. vlookup problem
    By jwintsch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2013, 04:21 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  7. vlookup problem
    By nander in forum Excel General
    Replies: 3
    Last Post: 06-05-2008, 01:08 PM
  8. vlookup problem
    By hudini in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2006, 10:14 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