+ Reply to Thread
Results 1 to 2 of 2

Trouble with Array Text Output and Criteria

  1. #1
    Registered User
    Join Date
    03-08-2017
    Location
    Ann Arbor, MI
    MS-Off Ver
    2010
    Posts
    1

    Angry Trouble with Array Text Output and Criteria

    I've been having trouble figuring this out. I am using arrays to evaluate a specific combination of criteria (color code, color, Toy) and return a maximum amount (see attached file - Example 1). I can get that to work, however, if one of the criteria is entirely missing within that combination, I'd like it to return with text that says, "Color Code Missing" (or whatever it is that is missing - see Example 2).

    If there is only one combination that does match the criteria, I'd like it to return that total cost (see Example 3)

    Whenever I manually add missing criteria to one of the Inventories to make it complete, the Formula/Array will often times say the criteria is still missing.

    Thoughts?

    -----

    Attachment not working, see google drive link for the file: https://drive.google.com/open?id=0B9...jVHdW5yLW9ZUm8

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

    Re: Trouble with Array Text Output and Criteria

    Here's a partial solution (formulae set for example 2):

    Max cost (D18 copied down):

    =MAX(IF($H$18:$H$26=A18,IF($I$18:$I$26=B18,IF($J$18:$J$26=C18,$K$18:$K$26))))

    Error message (E18, copied down):

    =IF(ISNUMBER(MATCH(A18&B18&C18,$H$18:$H$26&$I$18:$I$26&$J$18:$J$26,0)),"-","Something missing")

    Both are array formulae, which are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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

+ 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. Output Text if Multiple Criteria Matches
    By sadele89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2016, 03:07 PM
  2. Getting text output based on a/multiple criteria.
    By Quasar82 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-29-2016, 03:18 AM
  3. [SOLVED] Array to embed formula and if number of output is met output Blank
    By ywang in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2015, 02:34 AM
  4. [SOLVED] Search a text in an array and gives a corresponding output.
    By krash297 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2013, 07:37 AM
  5. Replies: 1
    Last Post: 12-04-2012, 11:57 PM
  6. Creating an Array to output titles(text)
    By mashoutposse in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2010, 02:26 PM
  7. [SOLVED] Trouble using the { } in array formula (for multiple criteria)
    By Caro-Kann Defence in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2005, 04:06 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