+ Reply to Thread
Results 1 to 7 of 7

INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Valparaiso, FL
    MS-Off Ver
    Excel 2013
    Posts
    73

    INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    Hello!

    I have 4 different terms called sessions at the college. I have a table listing all the sessions and the corresponding dates. I was trying to figure out how to compare the dates in I2:J2 against the table. Once it finds a match then it will return the session number that matches the date into column k. I've tried INDEX/MATCH but I just get a VALUE error.

    I've uploaded a sample sheet. Any ideas? Thanks so much-this is killing my brain!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-24-2016
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    92

    Re: INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    Hello,

    You can try this array formule (Use [Shift]+[Ctrl]+[Enter])
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hoop this helps
    WouterM
    The Netherlands

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    Try pasting this into K2

    =INDEX(G2:G5,SUMPRODUCT((I2=Table3103[Standard Start Dates])*(J2=Table3103[Standard End Dates])*ROW(Table3103[S'#]))-1)
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    oops, try this instead:

    =INDEX($G$2:$G$5,SUMPRODUCT((I2=Table3103[Standard Start Dates])*(J2=Table3103[Standard End Dates])*ROW(Table3103[S'#]))-1)

    I forgot to lock the references to $G$2:$G$5

  5. #5
    Registered User
    Join Date
    03-06-2014
    Location
    Valparaiso, FL
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    Hi WouterM,

    That worked beautifully! Thanks so much! Arrays are so amazing. Cheers!

  6. #6
    Registered User
    Join Date
    03-06-2014
    Location
    Valparaiso, FL
    MS-Off Ver
    Excel 2013
    Posts
    73

    Re: INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    Hi loginjmor,

    Thanks so much for your awesome formula creation! This worked perfectly! I am so amazed how many different approaches can solve a problem. I never considered the difference between array/non array formulas...now I have homework!

    Thanks again for your help!

  7. #7
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: INDEX/MATCH Formula issue-comparing dates in 4 columns to return a value

    Glad we could help!

+ 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] Help comparing two columns of data with same names different values (index match??)
    By exceldion in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-16-2015, 09:43 AM
  2. INDEX MATCH IF Between Two Dates - Comparing Two Tables
    By #N/A in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2015, 09:32 AM
  3. [SOLVED] Match Issue - Consolidate Columns of Data With Match/Index/etc?
    By excelsior123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-03-2014, 05:14 PM
  4. [SOLVED] Match & Index issue with dates
    By saybut in forum Excel General
    Replies: 11
    Last Post: 04-01-2014, 11:55 AM
  5. Issue with using Index Match function to return value from Summary Sheet
    By missmea2005 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2013, 02:02 PM
  6. Replies: 1
    Last Post: 01-23-2013, 08:59 PM
  7. Index & Match to return value between two dates
    By georgeanaprop in forum Excel General
    Replies: 2
    Last Post: 02-12-2010, 08:40 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