+ Reply to Thread
Results 1 to 3 of 3

Array formula to skip cells based on a value

Hybrid View

carlymcl Array formula to skip cells... 08-04-2015, 11:00 PM
azumi Re: Array formula to skip... 08-04-2015, 11:15 PM
AlKey Re: Array formula to skip... 08-04-2015, 11:20 PM
  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    Sydney
    MS-Off Ver
    Office 2013
    Posts
    1

    Array formula to skip cells based on a value

    Hi,

    I am trying to write an array formula which will skip cells if they have a particular value and return the corresponding cells of the others e.g.

    I have these lists
    A B
    1 Number Description
    2 1000 apple
    3 2105 ball
    4 2105 cat
    5 2105 dog
    6 2108 egg
    7 3302 fish
    8 4001 grape
    9 4001 house

    I need an array that will look at column A and list items in column B if A > 2105, so result should be:

    D
    1 Result
    2 egg
    3 fish
    4 grape
    5 house

    I want it so that it doesnt result in blank cells but skips any that have a number of <=2105.

    Thanks
    Attached Images Attached Images

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Array formula to skip cells based on a value

    Im assumed your table on ranges A1:B9 include header:

    put this on D2:

    =IFERROR(INDEX($B$2:$B$9,SMALL(IF($A$2:$A$9>2105,ROW($B$2:$B$9)-ROW($B$2)+1),ROWS($A$1:A1))),"")

    you'll see error, press F2 button and formula come up, then press CTRL+SHIFT+ENTER button all together, if success the bracket {} will showed up (this array formula sign) that enclosed the formula.
    Final step copied down until blank results....

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Array formula to skip cells based on a value

    In D2 and copy down

    =IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($B$2:$B$9)/(($A$2:$A$9>2105)),ROWS(D$2:D2))),"")

    Not need to use Alt+Ctrl+Enter

    Row\Col
    A
    B
    C
    D
    1
    Number Description Result
    2
    1000
    apple egg
    3
    2105
    ball fish
    4
    2105
    cat grape
    5
    2105
    dog house
    6
    2108
    egg
    7
    3302
    fish
    8
    4001
    grape
    9
    4001
    house
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] Make formula skip cells when draging down
    By TheMightyNoob01 in forum Excel General
    Replies: 3
    Last Post: 02-20-2015, 06:57 AM
  2. Skip Cells based on colour of cell
    By Cremorneguy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-01-2014, 10:16 PM
  3. How to skip blank cells and use formula
    By emp2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2014, 08:56 PM
  4. How to drag down formula but skip 2 cells
    By Coordinaters in forum Excel General
    Replies: 3
    Last Post: 06-25-2014, 12:39 AM
  5. Use formula to drag across but skip n number of cells
    By excelas88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-14-2013, 09:59 PM
  6. A Formula to skip blank cells (array?)
    By nemo74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 12:44 PM
  7. copy a formula down and skip n cells
    By sonordrummer in forum Excel General
    Replies: 2
    Last Post: 10-10-2012, 02:08 AM

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