+ Reply to Thread
Results 1 to 2 of 2

Adapting an Array Formula to exclude a row

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Adapting an Array Formula to exclude a row

    Hi,

    Hopefully this formula will not put too many people off as its large and I need to add to it!!!

    Array: =IFERROR(IF($C$5<>"",IF($C$6="Y",INDEX('BR Action Plan'!B:B,SMALL(IF('BR Action Plan'!$D$2:$D$884=$C$5,IF('BR Action Plan'!$I$2:$I$884="Y",ROW('BR Action Plan'!$B$2:$B$884)),""),ROWS(C$8:C8))),INDEX('BR Action Plan'!B:B,SMALL(IF((ISNUMBER(SEARCH($C$5,'BR Action Plan'!$D$2:$D$884)))*('BR Action Plan'!$I$2:$I$884="Y"),ROW('BR Action Plan'!$B$2:$B$884)),ROWS(C$8:C8)))),INDEX('BR Action Plan'!B:B,SMALL(IF(('BR Action Plan'!$I$2:$I$884="Y"),ROW('BR Action Plan'!$B$2:$B$884)),ROWS(C$8:C8)))),"")

    In essence it is a sheet which pulls data from one sheet to another based on two selection cells.

    It can be broken down into 3 main elements based on two user input cells:

    Element 1
    If cell C5 is blank, return everything that is on the sheet “BR Action Plan”

    Element 2
    If cell C5 is complete return the row matches on the sheet “BR Action Plan” that CONTAINS the word (based on column D)

    Element 3
    If cell C6 contains “Y” then return the row that matches on the sheet “BR Action Plan” that CONTAINS EXCATLY what is in cell C5 (based on column D)

    I now (frustratingly) need to add a 4th Element which excludes certain rows. E.g. if cell F5 contains an entry then this needs to be EXCLUDED from the summary sheet.

    In the attached example I have “Country 1” in the sheet “Open FP&A BR Actions Log”. Here I need rows 3 and 5 (actions 1.02 and 1.04) excluded as column H contains “Country 1”

    Can anyone help at all please?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,689

    Re: Adapting an Array Formula to exclude a row

    Hi,

    Any takers on this - can it even be done (to exclude a row)

+ 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] Need help adapting a formula to generate a random array of non-repeating numbers
    By MalibuLX3 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-11-2016, 08:56 AM
  2. [SOLVED] How to exclude the row from an array which has the formula in it.
    By YeahYeah077 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2014, 04:33 PM
  3. Adapting Macro to Include key words and not exclude
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-01-2014, 12:22 PM
  4. Exclude blank/FALSE cells in in Excel array IF formula output
    By sushix in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-08-2013, 11:42 AM
  5. Replies: 5
    Last Post: 07-19-2012, 08:18 PM
  6. Adapting Bubblesort to work with Long datatype array
    By Jeroen1000 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-30-2009, 08:26 AM
  7. Adapting an array formula
    By sixwest in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2006, 03:40 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