+ Reply to Thread
Results 1 to 8 of 8

Invert Results of an Array Formula

  1. #1
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Invert Results of an Array Formula

    Hi Guys,

    I'm working with an array formula (see below) that searches for and organises a particular value (in this case System Name) based on the date that it is due to finish. The formula works fine, but I am trying to set it up in such a way that the results appear at the bottom of the chart, as opposed to the top. I've attached the file in question for clarity.....any assistance would be greatly appreciated.

    =IF(ROW()-ROW(T$3:T$23)+1>ROWS(G$3:G$28)-COUNTBLANK(G$3:G$28),"",INDIRECT(ADDRESS(SMALL((IF(G$3:G$28<>"",ROW(G$3:G$28),ROW()+ROWS(G$3:G$28))),ROW()-ROW(T$3:T$23)+1),COLUMN(G$3:G$28),4)))




    SC Skyline Rev 01.xls

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Invert Results of an Array Formula

    Here, try this:
    Attached Files Attached Files

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Invert Results of an Array Formula

    put this in cell Q29:

    =INDEX(Q$3:Q$23,21-ROW($A1))

    then copy across and down. You will need to set up the same conditional formatting as above.

    Hope this helps.

    Pete

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Invert Results of an Array Formula

    put this in cell Q29:

    =INDEX(Q$3:Q$23,21-ROW($A1))

    then copy across and down. You will need to set up the same conditional formatting as above.

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Invert Results of an Array Formula

    Thanks guys, it worked a treat!

  6. #6
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Invert Results of an Array Formula

    Hi zbor,

    Thanks again for the help with this problem. I was was wondering, how would I go about modifying the formula:

    =IF(21-ROWS(R$3:R5)-COUNTIF(E$3:E$100,"?")>=0,"",INDEX(E$3:E$28,SUMPRODUCT(LARGE((E$3:E$28<>"")*ROW(E$1:E$26),COUNTIF(E$3:E$28,"?")-COUNTIF(R$2:R4,"?")))))

    if I wanted to have the source data located in another location of the worksheet? For example, I've added a few rows above the table we've been referencing (see attached) and it's now returning different values in the lookup table you developed. Is there a workaround for this, or possibly another formula that would prevent this from happening?

    Thanks in advance.
    Attached Files Attached Files

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Invert Results of an Array Formula

    Try this version in Q7 copied across and down

    =IF(21-ROWS(Q$7:Q7)-COUNTIF(D$7:D$32,"?")>=0,"",INDEX(D$7:D$32,SUMPRODUCT(LARGE((D$7:D$32<>"")*(ROW(D$7:D$32)-ROW(D$7)+1),COUNTIF(D$7:D$32,"?")-COUNTIF(Q$6:Q6,"?")))))

    That should allow you to add or delete rows above and below without the results changing
    Audere est facere

  8. #8
    Forum Contributor
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 365
    Posts
    221

    Re: Invert Results of an Array Formula

    Works a treat! Thanks for that mate!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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