+ Reply to Thread
Results 1 to 5 of 5

INDEX/MATCH with greater than or less than criteria

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Little Rock, AR
    MS-Off Ver
    2010
    Posts
    10

    INDEX/MATCH with greater than or less than criteria

    I have included the data I am working with but essentially what I am trying to do is for INDEX/MATCH to look at one column and determine where todays date is greater than one column (C in my example) and less than another column (D in my example) and return the corresponding value in the other column (B in my example).

    HTML Code: 

    I was trying this function but not having any luck

    {=IFERROR(INDEX($A$2:$A$8,MATCH(1,($B$2:$B$8>=$B$10)*($C$2:$C$8<=$B$10),0)),"-")}

    I removed all Sundays in this for a reason however if I need to reorganize my data in one column, it wouldn't be the end of the world. Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: INDEX/MATCH with greater than or less than criteria

    The formula in your example file doesn't match the columns.
    Your formula is testing on columns C and D yet your data is in columns B and C

    Further, column B must be greater than or equal to B10 and column C must be less than or equal to B10
    The only way that can happen is if the date in column B and C are the same
    If column B is a start date and C is an end date then column C will always be greater than column B
    So the only way that formula will work is if a date in column B = column C
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-18-2015
    Location
    Little Rock, AR
    MS-Off Ver
    2010
    Posts
    10

    Re: INDEX/MATCH with greater than or less than criteria

    Apologies, I had extra data in column A and removed it but forgot to adjust the formula, however in the data in the post I changed it.

    And in response to your answer, are you saying if I combine the data (i.e. just remove column C) and make the formula just a greater than equal to, that would work? I tried playing with that with no luck.

  4. #4
    Registered User
    Join Date
    09-15-2012
    Location
    Germany
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: INDEX/MATCH with greater than or less than criteria

    hi there,
    did you manage the formula? I do have a same issue at the moment

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: INDEX/MATCH with greater than or less than criteria

    maikbur welcome to the forum

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 10
    Last Post: 10-26-2021, 05:36 AM
  2. Index/Match with closest date greater than value
    By weeble33 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-19-2015, 10:46 AM
  3. [SOLVED] INDEX & MATCH - Want value equal or greater to ACTUAL
    By heatwave in forum Excel General
    Replies: 1
    Last Post: 08-06-2014, 08:18 AM
  4. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  5. [SOLVED] Index/Match - multiple criteria & greater than!
    By kennedy.clan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2013, 09:03 AM
  6. Index Function with Match for Values Greater than 0
    By henraa in forum Excel General
    Replies: 5
    Last Post: 11-18-2011, 05:37 AM
  7. Index Match - nested If (less than/greater than statements)
    By kelea in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-28-2009, 04:40 PM

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