+ Reply to Thread
Results 1 to 11 of 11

Condition for sequence of cells greater than pointed value

  1. #1
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Condition for sequence of cells greater than pointed value

    Greetings to all.

    Attached Excel requires condition written for the below query (your help appreciated):
    (i) Range of cells will be entered at M1 cell (here value entered as 6).
    (ii) From right side, 6th cell will be pointed.
    (iii) This 6th cell's value has to be LESSER THAN OR EQUAL TO each and every cell (remaining 5 cells -> (5, 4, 3, 2, 1) - from right side). If (i) to (iii) found to be good then it is considered to be 'PASS'.
    (iv)
    (a) If sequence of cells' range found to be < 6 OR
    (b) if any of the remaining 5 cells values found to be lesser than 6th value, then it is considered to be 'FAIL'.

    Thanks.
    Attached Images Attached Images
    Attached Files Attached Files
    Thanks,
    Leslie Prabakar Ruphas Vanathuraj

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,189

    Re: Condition for sequence of cells greater than pointed value

    Try

    in L2

    =IFERROR(IF(OR(COUNT($B2:$K2)<$M$1,COUNTIFS(OFFSET($B2,0,COUNT($B2:$K2)-$M$1+1,1,$M$1-1),">"&OFFSET($B2,0,COUNT($B2:$K2)-$M$1,1,1))<$M$1-1),"FAIL","PASS"),"FAIL")

    copy down
    Last edited by JohnTopley; 03-29-2017 at 01:51 PM.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Condition for sequence of cells greater than pointed value

    Variation on a theme:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Re: Condition for sequence of cells greater than pointed value

    Quote Originally Posted by TMS View Post
    Variation on a theme:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks so much TMS, much helpful. This is what I expected. Great effort! Added 'Reputation'. Kind regards to you all.
    Last edited by LesliePrabakar; 03-30-2017 at 01:31 AM. Reason: thanks

  5. #5
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Re: Condition for sequence of cells greater than pointed value

    Quote Originally Posted by JohnTopley View Post
    Try

    in L2

    =IFERROR(IF(OR(COUNT($B2:$K2)<$M$1,COUNTIFS(OFFSET($B2,0,COUNT($B2:$K2)-$M$1+1,1,$M$1-1),">"&OFFSET($B2,0,COUNT($B2:$K2)-$M$1,1,1))<$M$1-1),"FAIL","PASS"),"FAIL")

    copy down
    Thanks so much JohnTopley, much helpful. This is what I expected. Great effort! Added 'Reputation'. Kind regards to you all.
    Last edited by LesliePrabakar; 03-30-2017 at 01:30 AM. Reason: thanks

  6. #6
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Re: Condition for sequence of cells greater than pointed value

    Below 'OR' condition does not work (row starting with fruit name Apricot). Help please.

    Excel file updated and uploaded now. Row starting with Apricot

    (iii) This 6th cell's value has to be LESSER THAN OR EQUAL TO each and every cell (remaining 5 cells -> (5, 4, 3, 2, 1) - from right side). If (i) to (iii) found to be good then it is considered to be 'PASS'.
    Attached Files Attached Files
    Last edited by LesliePrabakar; 03-30-2017 at 04:24 AM. Reason: Excel updated

  7. #7
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Re: Condition for sequence of cells greater than pointed value

    Can someone kindly help, please..

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,189

    Re: Condition for sequence of cells greater than pointed value

    Try

    =IFERROR(IF(OR(COUNT($B7:$H7)<$M$1,INDEX($B7:$K7,COUNT($B7:$H7)-$M$1+1)>MIN(INDEX($B7:$K7,COUNT($B7:$H7)-$M$1+2):INDEX($B7:$K7,COUNT($B7:$H7)-$M$1+6))),"fail","pass"),"fail")

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Condition for sequence of cells greater than pointed value

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    As opposed to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Re: Condition for sequence of cells greater than pointed value

    Quote Originally Posted by JohnTopley View Post
    Try

    =IFERROR(IF(OR(COUNT($B7:$H7)<$M$1,INDEX($B7:$K7,COUNT($B7:$H7)-$M$1+1)>MIN(INDEX($B7:$K7,COUNT($B7:$H7)-$M$1+2):INDEX($B7:$K7,COUNT($B7:$H7)-$M$1+6))),"fail","pass"),"fail")
    Real thanks @JohnTopley for the reply. Helpful!

    How to take a particular column (here 2nd column value for all rows but not the 6th cell value) and check the condition. Awaiting for the solution. Thanks in advance!

    2nd column.png

  11. #11
    Forum Contributor
    Join Date
    02-22-2015
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    100

    Re: Condition for sequence of cells greater than pointed value

    Can someone kindly help for the above comment, please..
    Last edited by LesliePrabakar; 04-05-2017 at 03:42 AM. Reason: help

+ 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. if condition with greater than and equal senario
    By SAMKHAN79 in forum Excel General
    Replies: 1
    Last Post: 10-10-2016, 10:43 AM
  2. [SOLVED] find value which is greater than in a range of cells and return the greater value
    By green369 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2015, 02:46 AM
  3. [SOLVED] Condition Format 'Number' Greater than only.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-25-2014, 09:29 PM
  4. VBA - Add a Sequence Number based on Condition
    By AGALLEGOS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2014, 06:03 PM
  5. Replies: 8
    Last Post: 08-19-2010, 05:41 PM
  6. More than 1 condition of 'greater than date'
    By unley in forum Excel General
    Replies: 3
    Last Post: 07-12-2010, 10:08 PM
  7. how to display only a particular range of cells according to data in a pointed cell
    By soonyeap in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-07-2009, 01:32 AM

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