+ Reply to Thread
Results 1 to 5 of 5

Non continuous array

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    London
    MS-Off Ver
    Excel 20010
    Posts
    7

    Non continuous array

    Hi there,

    I have to find the smallest value different from zero in an array. So far so good:

    =SMALL(A2:E2,COUNTIF(A2:E2,"<=0")+1)

    The issue is that I should not consider certain cells (columns) in that array (e.g. consider A, C, D only).

    Very trivial question but cannot sort this out. What Is the correct syntax?
    A2,B2, ...
    A2 & B2 ....

    Thanks,
    M

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Non continuous array

    try
    =SMALL(CHOOSE({1,2,3},A2,C2,D2),SUMPRODUCT(--(CHOOSE({1,2,3},A2,C2,D2)<=0))+1)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Non continuous array

    Here's another one...

    =SMALL((A2,C2,D2),FREQUENCY((A2,C2,D2),0)+1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    02-27-2013
    Location
    London
    MS-Off Ver
    Excel 20010
    Posts
    7

    Re: Non continuous array

    Brilliant! Both of them worked. Thanks, Michele

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Non continuous array

    You're welcome. Thanks for the feedback!

+ 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. Need to run continuous loop
    By hockeyadc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2012, 02:03 PM
  2. [SOLVED] Continuous rank
    By markos97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2012, 03:27 AM
  3. Replies: 0
    Last Post: 02-20-2012, 05:42 PM
  4. Non-continuous Averages
    By artiststevens in forum Excel General
    Replies: 15
    Last Post: 02-24-2011, 12:33 PM
  5. [SOLVED] Continuous Addition
    By Precious Singleton in forum Excel General
    Replies: 1
    Last Post: 08-02-2005, 04:05 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