+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting with a INDEX(MATCH) array formula

Hybrid View

  1. #1
    Registered User
    Join Date
    12-15-2016
    Location
    Ontarion, CDA
    MS-Off Ver
    2013
    Posts
    2

    Conditional Formatting with a INDEX(MATCH) array formula

    Hello,
    I do not know if what I am trying to accomplish is possible with this formula. I have the entire formula working in a normal cell to return a TRUE/FALSE based on criteria. I cannot figure out how to translate this formula into the conditional formatting.

    In the attached document:

    ExecView!F8:F16 needs the conditional formatting
    ExecView!J8 contains contains the example of the formula I want to use for the conditional formatting
    {=IF(F8<(INDEX(tbl_Thresholds[Reserve(T3)],MATCH(A8&H8,tbl_Thresholds[SITE]&tbl_Thresholds[Man.],0))*0.5),TRUE,FALSE)}
    ExecView!K8 contains only the portion of the above formula that is the variable to ensure the INDEX(MATCH) is functioning
    {=INDEX(tbl_Thresholds[Reserve(T3)],MATCH(A8&H8,tbl_Thresholds[SITE]&tbl_Thresholds[Man.],0))}

    Hopefully someone can assist on how to accomplish this, maybe with a different formula to get the same results.
    Thanks
    B
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Conditional Formatting with a INDEX(MATCH) array formula

    Hi,

    I think it has something to do with use the Table format references such as [Reserve(T3)], [SITE] and [MAN].

    Change them to column references.

    =IF(F9<(INDEX(Thresholds!$D:$D,MATCH(A9&H9,Thresholds!$A:$A&Thresholds!$E:$E,0))*0.5),TRUE,FALSE)
    However, referencing the entire column will really slow things down.

    You can adjust them to area specific. Such as:

    =IF(F9<(INDEX(Thresholds!$D$2:$D$16,MATCH(A9&H9,Thresholds!$E$2:$E$16,0))*0.5),TRUE,FALSE)
    Though this can slow things down if you have a lot of them. Try a SUMIFS instead.

    =IF(F8<(SUMIFS(Thresholds!$D:$D,Thresholds!$A:$A,A8,Thresholds!$E:$E,H8)),TRUE,FALSE)
    Hope this is helpful.

    Cheers

  3. #3
    Registered User
    Join Date
    12-15-2016
    Location
    Ontarion, CDA
    MS-Off Ver
    2013
    Posts
    2

    Re: Conditional Formatting with a INDEX(MATCH) array formula

    @southward

    Thanks for the input but I like to keep my formulas as dynamic as possible (I should have mentioned that in my first post).

    I try to keep my formulas very dynamic and use variables instead of references. I have found that to be best when dealing with sheets that do and will change structure frequently. I know it might not be the ideal way for best performance but, I have found it to the best way when dealing with users who do not know Excel very well.

    Is there any other way to accomplish this formatting?
    Thanks
    B

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

    Re: Conditional Formatting with a INDEX(MATCH) array formula

    Hi, welcome to the forum

    When I converted your Tables to regular ranges, your formula worked fine in CF - didnt seem to like the Structured Table references.

    I just used this...
    =F8 < INDEX(Thresholds!$D$2:$D$16,MATCH(A8&H8,Thresholds!$A$2:$A$16&Thresholds!$E$2:$E$16,0))*0.5
    CF only needs TRUE or FALSE, so you just need to structure your formula to give 1 of thise
    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

  5. #5
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Conditional Formatting with a INDEX(MATCH) array formula

    You can use Dynamic Named Ranges that will automatically grow and include any new data.

    Here is one of the DNR's I used in the attached example.

    =OFFSET(Thresholds!$E$2,0,0,COUNTA(Thresholds!$E:$E)-1,1)
    The DNR names I used are "Man", "ResT3" and "Site".

    This formula works in the conditional formatting.

    =IF(F8<(SUMIFS(ResT3,Site,ExecView!A8,Man,ExecView!H8)),TRUE,FALSE)
    Hope this works for you.

    Cheers
    Attached Files Attached Files

+ 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] Formula to Index match multiple criteria with conditional formatting for leave calendar
    By meckenzie2012 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-19-2016, 02:22 PM
  2. Conditional formatting with INDEX MATCH MATCH
    By jawebb in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-28-2016, 05:01 AM
  3. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  4. [SOLVED] Index Match and Conditional Formatting
    By leebird in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2016, 10:36 PM
  5. [SOLVED] conditional formatting with MATCH/INDEX formula (in VBA)
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2014, 07:16 AM
  6. Conditional formatting using Index/Match
    By sj123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2014, 03:19 PM
  7. Conditional Formatting with INDEX/MATCH
    By Shanster695 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2013, 02:39 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