+ Reply to Thread
Results 1 to 4 of 4

Formula for returning the next value unless value in adjacent column in 1

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    6

    Smile Formula for returning the next value unless value in adjacent column in 1

    The first two columns are an example of my data set; I would like a formula for the 3rd column (Length+1) which will give me the length at the next age (i.e the value in the cell below in most cases) unless the following age is 1 in which case I want it to return zero. Any help, much appreciated.

    Age Length Length+1
    1 22 51
    2 51 78
    3 78 94
    4 94 0
    1 31 46
    2 46 69
    3 69 85
    4 85 96
    5 96 103
    6 103 0
    1 19 36
    2 36 52
    3 52 0
    Last edited by helsbelz; 02-04-2014 at 07:24 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula for returning the next value unless value in adjacent column in 1

    Hi,

    Welcome to the forum.

    It would assist greatly if you'd manually enter the results you expect since we can interpret your request in more than one way. However if it is simply a value which is one greater than the row below then in C2 copied down

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


    Somehow though I doubt that's what you mean.
    Last edited by Richard Buttrey; 02-04-2014 at 07:05 AM. Reason: correction
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Formula for returning the next value unless value in adjacent column in 1

    Hi,

    a possible solution to check if the cell below in greater than zero

    =(A3+1)*(A3>0)

    Regards

    ------------

    Edit: I'm a slow writer
    Last edited by canapone; 02-04-2014 at 07:04 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    02-04-2014
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Formula for returning the next value unless value in adjacent column in 1

    Thank you Richard that is exactly what I meant, brilliant.

+ 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. Formula to total all amounts in a column adjacent to a particular name
    By nattyann89 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-28-2013, 11:19 AM
  2. Replies: 3
    Last Post: 07-30-2012, 11:20 AM
  3. [SOLVED] Stumped with Formula Array returning cell adjacent to formula dataset
    By Giles_Silver in forum Excel General
    Replies: 5
    Last Post: 06-04-2012, 12:18 AM
  4. Replies: 1
    Last Post: 03-25-2011, 09:42 AM
  5. Replies: 6
    Last Post: 03-04-2006, 07:30 AM

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