+ Reply to Thread
Results 1 to 4 of 4

Test if a value is equal to one of the 3 smallest values of a range of values

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Lausanne
    MS-Off Ver
    Excel 2010
    Posts
    2

    Test if a value is equal to one of the 3 smallest values of a range of values

    Hi all,
    • =Small(array;1) works
    • =i5={1,2,3,4} works

    But

    =i5={SMALL(array;1), SMALL(array;2), SMALL(array;3)} doesn't work, excel says it's an inconsistent formula.

    What am I doing wrong ?

    Thank you for your help !

  2. #2
    Registered User
    Join Date
    09-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007/10
    Posts
    45

    Re: Test if a value is equal to one of the 3 smallest values of a range of values

    use like this

    =AND(D2=SMALL(A1:A7,1),D2=SMALL(B1:B7,1))

  3. #3
    Registered User
    Join Date
    09-26-2012
    Location
    Lausanne
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Test if a value is equal to one of the 3 smallest values of a range of values

    Oo

    AND returns true if all tests are true, which of course is not possible.

    Again, I have an array, and I would like to test each value of that array and check if it is one of the 3 smallest values of that array. The final goes is to use conditional formatting.

  4. #4
    Registered User
    Join Date
    09-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007/10
    Posts
    45

    Re: Test if a value is equal to one of the 3 smallest values of a range of values

    try using or instead of and.
    the result will be a Boolean though...

    =OR(D2=SMALL(A1:A7,1),D2=SMALL(B1:B7,1))

+ 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