+ Reply to Thread
Results 1 to 5 of 5

picking cells with the highest values

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    22

    picking cells with the highest values

    Hi, thanks for your time.

    I want a formula to submit a value of...

    +1 if a cell from a group of cells has one of the 3 highest values >0.6 amongst the cells AND cell B4 =True
    +1 if a cell from a group of cells has one of the 3 lowest values <0.4 amongst the cells AND cell B4 =False.
    -1 if a cell from a group of cells has one of the 3 lowest values <0.4 amongst the cells AND cell B4 =True.
    -1 if a cell from a group of cells has one of the 3 highest values >0.6 amongst the cells AND cell B4 =True.
    0 if none of the above conditions is true.

    ...into a cell G4. So G4 either has a value of +1 or -1 or 0.

    Once again, thanks a lot for your time!
    Last edited by schill2; 08-16-2012 at 02:53 AM.

  2. #2
    Registered User
    Join Date
    08-16-2012
    Location
    SA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: picking cells with the highest values

    You will need a range. Expect the range to be in B4 to B10. I think the following formula will work:
    =if(B4>0.6,if(B4<LARGE($B$4:$B$10,3),-1,1),if(B4<SMALL($B$4:$B$10,3),-1,1),0))

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    SA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: picking cells with the highest values

    One change in the sign before SMALL.
    You will need a range. Expect the range to be in B4 to B10. I think the following formula will work:
    =if(B4>0.6,if(B4<LARGE($B$4:$B$10,3),-1,1),if(B4>SMALL($B$4:$B$10,3),-1,1),0))

  4. #4
    Registered User
    Join Date
    08-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: picking cells with the highest values

    Thanks Leonsw!
    I'll let you know how I got on!

  5. #5
    Registered User
    Join Date
    08-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: picking cells with the highest values

    Hi again. unfortunately, I am getting a message which says "You have entered too many arguments for this function".
    Do you know what else I can do?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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