+ Reply to Thread
Results 1 to 4 of 4

return all instances matching criteria acrros/vertical

  1. #1
    Registered User
    Join Date
    07-31-2016
    Location
    tirana
    MS-Off Ver
    2016
    Posts
    16

    return all instances matching criteria acrros/vertical

    Hello,

    I need a formula to be copied across and down to show all colors that match >0, in each row

    yellow blue white result result result
    1 1 1 yellow blue white
    0 0 1 white blank blank
    1 0 0 yellow blank blank



    ii ve posted this also here
    https://www.mrexcel.com/forum/excel-...-small-if.html

  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 2406
    Posts
    44,662

    Re: return all instances matching criteria acrros/vertical

    Array enter this formula in D2, copy across and down:

    =IFERROR(INDEX($1:$1,SMALL(IF($A2:$C2>0,COLUMN($A2:$C2)),COLUMNS($D2:D2))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    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

  3. #3
    Registered User
    Join Date
    07-31-2016
    Location
    tirana
    MS-Off Ver
    2016
    Posts
    16

    Re: return all instances matching criteria acrros/vertical

    Thank you Glenn, that was very fast

  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 2406
    Posts
    44,662

    Re: return all instances matching criteria acrros/vertical

    You're welcome and thanks for the rep.

+ 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] Return Value in Cell by matching Horizontal and vertical names
    By emsiti in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-01-2016, 08:16 AM
  2. Multiply two value based on instances of criteria matching in ranges
    By jbang917 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2016, 10:03 PM
  3. Searching matching vertical and horizontal criteria in multiple sheets
    By Bloozntooz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2015, 04:12 PM
  4. [SOLVED] 3 criteria for horizontal and vertical matching
    By mator in forum Excel General
    Replies: 5
    Last Post: 12-24-2014, 07:19 AM
  5. 3 criteria for horizontal and vertical matching from a table
    By mator in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-24-2014, 06:28 AM
  6. [SOLVED] Complex VLOOKUP, multiple instances vertical, return subsequent instances horizontally
    By Miles_2804 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 11:54 AM
  7. Counting the matching instances with three criteria
    By KeiranMac in forum Excel General
    Replies: 1
    Last Post: 10-07-2009, 12:04 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