+ Reply to Thread
Results 1 to 3 of 3

Nested IFS with INDEX function query

  1. #1
    Registered User
    Join Date
    09-04-2021
    Location
    Sheffield UK
    MS-Off Ver
    2013 and 365
    Posts
    11

    Nested IFS with INDEX function query

    Hi,

    I'm looking to amend my formula in my excel worksheet which is as follows:

    =INDEX('Condensed Data'!E2:E53, MATCH(1, INDEX((B6='Condensed Data'!D2:D53)*($A$6='Condensed Data'!C2:C53), 0), 0))

    It returns the first value from the condensed data worksheet but I need it to return the values in priority order. For example, if supplier 1 and control 1, which has multiple controls within control 1, has 3 green and 1 red, but the red was further down the list, I would want the formula to return the result as red because red takes priority, followed by Amber and green. Only if all the results for supplier 1 and control 1 were green, should it return a green result.

    I need this formula to first index match SupplierName then ControlName before then returning the prioritised result. I have tried using nested IFS but to no joy as I need the index function to first meet the criteria on SupplierName and ControlName. If I need to use VBA then happy to take suggestions on that too.

    Please see attached example spreadsheet. I would be grateful for any suggestions on this.
    Thanks in advance,
    Craig
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Nested IFS with INDEX function query

    Try this:

    Please Login or Register  to view this content.
    Or:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-04-2021
    Location
    Sheffield UK
    MS-Off Ver
    2013 and 365
    Posts
    11

    Re: Nested IFS with INDEX function query

    Thank you Phuocam, worked a charm. Appreciate the assist

+ 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. Need help around correct formulae nested if or index for attached query
    By sui898 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2021, 02:18 PM
  2. [SOLVED] MATCH and INDEX function instead NESTED IF function
    By geniusufo007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-12-2018, 01:07 PM
  3. [SOLVED] Mid Function nested in Index return #N/A
    By ibuhary in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2015, 03:12 AM
  4. [SOLVED] Index with Nested Match Function Help
    By T86157 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-30-2015, 12:43 PM
  5. [SOLVED] Nested INDIRECT in INDEX/MATCH function
    By xtort81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2014, 03:08 PM
  6. nested MATCH function within the INDEX function
    By thechoosenonesdream in forum Excel General
    Replies: 4
    Last Post: 10-25-2012, 03:55 PM
  7. Nested Function using MATCH and/or INDEX
    By ExcelJunkie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-26-2006, 03:54 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