+ Reply to Thread
Results 1 to 8 of 8

Return a Value in a Series of 3 or more Consecutive Values

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Return a Value in a Series of 3 or more Consecutive Values

    Hello all,

    I've tried to find a solution for the following but can't get it done.

    The formula needs to return a true value in column C if the following conditions are met:
    1 | a series of 3 or more consecutive N-values in column B
    2 | the value on the same row in column B is empty
    3 | the value on the same row in column A is not equal to empty

    In the example below:
    1 | B1:B4 is a series of more than 3 N-values
    2 | B7 is empty
    3 | A7 is not equal to empty


    Afbeelding 1.jpg

    I hope this make sense
    All help is welcome!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Return a Value in a Series of 3 or more Consecutive Values

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Return a Value in a Series of 3 or more Consecutive Values

    In C1:
    Please Login or Register  to view this content.
    and pull down.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Return a Value in a Series of 3 or more Consecutive Values

    Thanks for trying Ben but it doesn't return the desired results.
    Attached Files Attached Files

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Return a Value in a Series of 3 or more Consecutive Values

    That formula meets the 3 criteria you listed:
    Quote Originally Posted by Jonathan78 View Post
    The formula needs to return a true value in column C if the following conditions are met:
    1 | a series of 3 or more consecutive N-values in column B
    2 | the value on the same row in column B is empty
    3 | the value on the same row in column A is not equal to empty

    What are the logical conditions you left out of OP?

  6. #6
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Return a Value in a Series of 3 or more Consecutive Values

    These are the results of your formula.
    I was looking for results like the sample I gave in my first post.


    Afbeelding 1.jpg

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Return a Value in a Series of 3 or more Consecutive Values

    IF The trigger to return TRUE is a blank row and D in column A then this will work
    Enter in C3 and fill down to return N at the last N in column C if there are at least 3 in a row. This is a helper column.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Enter in D2 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the above is not correct, the last formula should be ignored. This will leave TRUE beside the last N in a series of 3 or more.
    Attached Files Attached Files
    Last edited by newdoverman; 05-16-2016 at 04:47 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Return a Value in a Series of 3 or more Consecutive Values

    EDIT:@Jonathan

    My point is that the picture you posted of you desired results do not match the criteria you listed in the text of your first post, describing the formula you wanted.

    You need to figure out what the criteria you left implicit -- what you did not describe -- are.

    The difference between the image you posted and what you described is enough that I cannot guess what information you left out, I need you to tell me.
    Last edited by ben_hensel; 05-16-2016 at 04:48 PM.

+ 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. Length of the longest consecutive data series with values not null
    By jacknobody in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-24-2013, 09:42 AM
  2. count the series of consecutive positive/negative values and sum them
    By otage in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-12-2012, 12:43 PM
  3. [SOLVED] Return Consecutive Values
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-06-2005, 07:05 AM
  4. Return Consecutive Values
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-06-2005, 06:05 AM
  5. Return Consecutive Values
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 03:05 AM
  6. Return Consecutive Values
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 02:05 AM
  7. Return Consecutive Values
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] Return Consecutive Values
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-08-2005, 09: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