+ Reply to Thread
Results 1 to 6 of 6

Return next value in a column greater than zero

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    Ruse
    MS-Off Ver
    Excel 2003
    Posts
    22

    Return next value in a column greater than zero

    Hello,

    My first post here and I need some help. Here is the situation

    I have 2 columns - "A" and "B" and I have data in "A" , "B" is empty. What I want to do is a function which will do the following: Look at column "A" and if the cell contains "0" than return in "B" the next number in the "A" column which is higher than "0". If the cell contains a number higher than "0" - return the number in "B".

    I know it might look pretty simple for advanced users but sometimes it takes me up to 4 hours to do this manually, when the data contains more than 3500 rows.

    For example here is the excel : fileexample1.xls

    Is there anyone who can help me with this? thank u very much in advance!
    Last edited by sordid; 09-05-2012 at 08:44 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Return next value in a column greater than zero

    There are no values in column K in your example, but you mention this in your post...
    If I've been of help, please hit the star

  3. #3
    Registered User
    Join Date
    09-04-2012
    Location
    Ruse
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Return next value in a column greater than zero

    So sorry, my mistake, i meant column "A" instead of "K". Just fixed it.

  4. #4
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Return next value in a column greater than zero

    Like this?

    I found the formula down the back of the internet and amended it to fit your example.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-04-2012
    Location
    Ruse
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Return next value in a column greater than zero

    Works like a charm. thank u very much !

  6. #6
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Return next value in a column greater than zero

    Not a problem, happy to help

    Don't forget to mark the thread as SOLVED if you're all done here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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