+ Reply to Thread
Results 1 to 5 of 5

Tricky INDEX/MATCH Function

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    45

    Question Tricky INDEX/MATCH Function

    Hi All,

    I have a tricky INDEX/MATCH function that has me stumped. I attached a workbook that explains what I'm trying to do. If you can think of a solution other than INDEX/MATCH I'm all ears!

    Thanks for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Tricky INDEX/MATCH Function

    I would change your MAX formula in H20 so that it will also work in January, i.e. to this

    =MAX(IF(D13:D33=TEXT(TODAY()-DAY(TODAY()),"myyyy"),E13:E33))

    and then for the corresponding date you could use this formula:

    =INDEX(C13:C33,MATCH(1,(E13:E33=H20)*(D13:D33=TEXT(TODAY()-DAY(TODAY()),"myyyy")),0))

    both formulas need to be confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Tricky INDEX/MATCH Function

    Thanks @daddylonglegs, it seems to do what I was trying to do.

    One question: What does modifying the 'Month Code' to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    accomplish that
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    does not?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Tricky INDEX/MATCH Function

    Your version works fine for the given data but I was assuming you might want to do the same thing in January 2014 for the previous month's data, i.e. 122013 so your version wouldn't work in that instance

  5. #5
    Registered User
    Join Date
    11-25-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Tricky INDEX/MATCH Function

    Okay I understand... I was actually trying to find an easy way to do that a while ago and just resorted to a more complex formula, so thanks! Do you have a similar formula for determining last week?

+ 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. Tricky INDEX/MATCH Function
    By jj554 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2013, 08:42 PM
  2. a tricky "index(match)" situation?
    By ryefield in forum Excel Formulas & Functions
    Replies: 39
    Last Post: 09-03-2013, 01:12 PM
  3. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  4. =IF(Match(index) - tricky multiple conditions
    By Blackhawks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2013, 10:20 AM
  5. Tricky index and match
    By robbo46 in forum Excel General
    Replies: 1
    Last Post: 06-21-2011, 04:18 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