+ Reply to Thread
Results 1 to 13 of 13

check value increase continuously

  1. #1
    Registered User
    Join Date
    11-05-2011
    Location
    sri lanka
    MS-Off Ver
    Excel 2007
    Posts
    10

    check value increase continuously

    hi

    please help me to solve this.

    I have some data like this(SAY IN ROW 1 & 2)

    A B C D E F G
    JOHN 0 14 16 28 29 32
    MARY 5 8 3 11 16 18

    Now I want to check whether the values are increasing continuously

    for John it should indicate "Yes" and for Mary it should be "No"
    because there is a drop in D2 cell

    The formula should indicate "Yes" or "No" in the row of the particular person.
    Last edited by nalaka; 11-07-2011 at 10:40 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: check value increase continuously

    Hello & Welcome to the board,

    If your data is as simple as your example...

    Try...

    Please Login or Register  to view this content.
    I guess you could use and OR setup also...

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 11-05-2011 at 09:41 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-05-2011
    Location
    sri lanka
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: check value increase continuously

    thanks for the help jeffrey.


    sorry that I have not given you the requirement in detail.

    The data range I have is not consistant
    say row 1 will have 0 0 0 1 5 8 18 0 0 0
    row 2 will have 0 0 4 9 3 14 19 20 25 0
    in such case I want to ignore the zeros either side and validate only between the first and the last value grater than 0 (say row 1 , cell value 1 to cell value 18
    row 2 , cell value 4 to cell value 25)

    I have already found the cell adresses of the first and last value that are grater than zero which varies from row to row.

    I cannot use the simple IF formula you told because of this.

    Hope that you understand my requirement.



    Quote Originally Posted by jeffreybrown View Post
    Hello & Welcome to the board,

    If your data is as simple as your example...

    Try...

    Please Login or Register  to view this content.
    I guess you could use and OR setup also...

    Please Login or Register  to view this content.

  4. #4
    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
    48,099

    Re: check value increase continuously

    Maybe:

    =IF(SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0,"yes","no")

    or:

    =IF(SUM(B1:J1)=0,"no",IF(SUMPRODUCT(--(B1:J1<>0),--(B1:J1<=A1:I1))=0,"yes","no"))


    Regards
    Last edited by TMS; 11-05-2011 at 01:29 PM.
    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


  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: check value increase continuously

    See if this workbook does as you need.

    This should manage up to 50 rows as you need dynamically with up to 20 numbers in each row.
    No Duplicate names allowed.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    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
    48,099

    Re: check value increase continuously

    @Marcol: not sure that's what the OP wanted, regards, TMS

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: check value increase continuously

    @ TMS
    Neither am I ... !

  8. #8
    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
    48,099

    Re: check value increase continuously

    @Marcol: sounds like we're on the same page then

  9. #9
    Registered User
    Join Date
    11-05-2011
    Location
    sri lanka
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: check value increase continuously

    thks TMS, your suggestion solved 50% of my problem.

    but if there is a 0 value inbetween it gives a wrong answer.

    say
    A B C D E F G H I J
    1 Jhon 0 0 0 3 4 7 19 0 0 Yes
    2 Mary 0 0 4 6 0 9 20 31 0 Yes (should be "No)

    basically these are sales figures and 0 start and end means the person has not joined the company. but 0 in the middle means she has not acheived the sales.

    this is what I want to find.
    Hope little improvement to your formula will help me if could you pls.


    Quote Originally Posted by TMShucks View Post
    Maybe:

    =IF(SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0,"yes","no")

    or:

    =IF(SUM(B1:J1)=0,"no",IF(SUMPRODUCT(--(B1:J1<>0),--(B1:J1<=A1:I1))=0,"yes","no"))


    Regards

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: check value increase continuously

    Okay that's the third time the rules have changed.

    Try this
    With your Names in Column A and your data beginning in Column C
    In B1
    Please Login or Register  to view this content.
    This will handle up to 16 numbers per row.

    Or a dynamic solution
    Please Login or Register  to view this content.
    The number of entered numbers per row is only limited by the sheet width
    Attached Files Attached Files
    Last edited by Marcol; 11-06-2011 at 07:04 AM.

  11. #11
    Registered User
    Join Date
    11-05-2011
    Location
    sri lanka
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: check value increase continuously

    thks Marcol,

    sorry to trouble you again. this is the first time I am writing to the help forum and therefore apologies for any inconvenience

    I have not change my original conditions infact added a few.

    your trick solves the 0 (zero) issue but not the others.

    here are the complete set of conditions. If you could pls help me to achive the total solution.

    say sales figures are from year 2000 to 2010.(A B C columns are years)

    1. there can be any number of zeros at the begining years (person has joined the company in a latter year may be in 2001 or 2002 or 2003 etc.)
    2. there can be any number of zeros in ending years (person has left the company before the 2010.ex in 2007 or 2008 or 2009 or even in 2010 etc.)
    3. there should be a continuous improvement in sales (need not be the same increment but there cannot be either repitition of values or zeros. )
    ex. in 2005 value if the value is 6 in a latter year same amount (6) is not valid.
    0 inbetween two figures means person has not achieved any sales which also is not valid

    assume data range is column C to L

    hope you can help me with the above

    Quote Originally Posted by Marcol View Post
    Okay that's the third time the rules have changed.

    Try this
    With your Names in Column A and your data beginning in Column C
    In B1
    Please Login or Register  to view this content.
    This will handle up to 16 numbers per row.

    Or a dynamic solution
    Please Login or Register  to view this content.
    The number of entered numbers per row is only limited by the sheet width

  12. #12
    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
    48,099

    Re: check value increase continuously

    @nalaka: it is not effective use of anyone's time to keep adding conditions as each individual condition is addressed. As can be seen here, the final solution to meet several conditions can be quite different to a solution that addresses one or two conditions. It may, in fact, need a completely different approach.

    Regards, TMS

  13. #13
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: check value increase continuously

    Okay, let's try again.

    In this workbook there are two alternatives.

    1/. Rows where the last non-zero value is greater than the first non-zero will return "Yes".
    Rows where the last non-zero value is less than the first non-zero will return "No".
    Any row that has a sequence that is broken by a zero will return "No".

    2/. Rows where the last non-zero value is greater or equal to the maximum for that row will return "Yes".
    Rows where the last non-zero value is less than the maximum for that row will return "No".
    Any row that has a sequence that is broken by a zero will return "No".

    In both cases the formula is an array formula and must be confirmed with Ctrl+Shift+Enter not just Enter.

    The length of the calculated row in both cases is dynamic and non-volatile, fill as many columns as you need with zeros or numbers, blank counts as zero.

    Hope this helps.
    Attached Files Attached Files

+ 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