+ Reply to Thread
Results 1 to 6 of 6

IF statements with nested INDEX MATCH

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    9

    IF statements with nested INDEX MATCH

    Hello. I am trying to write one Excel formula that can accomplish the following:
    Review a Discount Sheet to determine whether a Class Name should be purchased based on its current discount compared to my Target Discount for that Class Name. The majority of the time, weekly discount changes occur in 5-10% increments, but occasionally they will occur in increments of 20% or more. If a discount percentage increases by 20% or more and surpasses my Target Discount, the current method I am using to automate this process does not work.

    Example:
    Last week’s discount in cell G2 is 25%, and this week’s discount in cell H2 is 40%. The Target Discount for that class is 30%, so under my current system I would not request that Class Name for purchasing because the current discount does not exactly equal my Target Discount, even though the previous week’s discount did not exceed my Target Discount and now I should purchase that Class Name because the discount has gone from not meeting to exceeding my Target Discount.

    INDEX MATCH used to retrieve current discount:
    =INDEX('Discount Sheet'!$H$2:$H$4910,MATCH(A3,'Discount Sheet'!$F$2:$F$4910,0))

    Validity Test in Cell F2 to compare Current Discount to Target Discount:
    =E2=C2

    NOTE: The above validity test could include a >= to capture Current Discounts that have exceeded the Target Discount; however, over time all Current Discounts will exceed the Target Discount. It is only when last week’s discount did not exceed the Target Discount and now the Current Discount does exceed the Target Discount should a class be purchased.

    The final result of this formula should be “TRUE” or “FALSE” without having to cut and paste any data for additional validity comparisons.

    Sorry for the detailed post. Any help would be appreciated. Thank you.
    Attached Files Attached Files

  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,000

    Re: IF statements with nested INDEX MATCH

    Is this what you had in mind?
    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
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: IF statements with nested INDEX MATCH

    Hello,

    Thanks for the reply. That formula is similar to what I am doing now with two formulas. Basically this,the only time I want a class name to show up as "Yes" or "True" for purchasing is when last week's discount was below my target discount and now has gone above my target discount. In all future instances where the current discount is above my target discount I DO NOT want that class name to be slated for purchasing, since it already should have been purchased in previous weeks.

    Does that make since?

  4. #4
    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,000

    Re: IF statements with nested INDEX MATCH

    Hi, It's been a formula-busting dayt in work today, so I'm a bit fried tonight. Hopefully (...) this is OK, so try itout...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: IF statements with nested INDEX MATCH

    That is absolutely brilliant. Looks like the AND function was the big missing link. Nice to know you can join two index matches to make a complex matching criteria. I have used INDEX MATCH when matching multiple basic criteria with the addition of "&" with multiple cells to match, but never this complex. Outstanding work! I added to your reputation and marked this thread as solved.

    Thanks so much.

  6. #6
    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,000

    Re: IF statements with nested INDEX MATCH

    Cheers! & g'nite from (unusually) sunny Northern Ireland.

+ 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] 3 Nested IF INDEX MATCH
    By JonesZoid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2014, 10:56 AM
  2. Nested Match(index()) vs. Match() array formula.
    By GeneralDisarray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2011, 07:57 AM
  3. Nested IF (index and match)
    By mikera in forum Excel General
    Replies: 2
    Last Post: 01-21-2010, 11:27 AM
  4. 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
  5. Nested If Statements using Match
    By Zaraf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2008, 01:52 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