+ Reply to Thread
Results 1 to 8 of 8

Need formula to find the next value in series by comparing values of adjacent cells

  1. #1
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Question Need formula to find the next value in series by comparing values of adjacent cells

    Hi Friends,
    I have a file attached with this post in which I want to insert a formula that it should automatically pick only that next value from the given series if its adjacent cells are empty. please have a look at a snap shot or the excel file attached, you can find more crisp and clear explanation for desirous resolution.

    Thanks in advance to all the readers and solvers.

    snap shot.png
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-04-2014
    Location
    Somewhere
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    Try this:

    In cell E2 , put this function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In column G2 put this function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-22-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2010
    Posts
    39

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    Hi warriorpoet7176 ,

    Please try this formula

    =INDEX(A2:A17,IF(COUNTA($B$2:$B$17)+1=COUNTA(C2:C17)+1,COUNTA($B$2:$B$17)+1,COUNTA($B$2:$B$17)))

    Regards,

  4. #4
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    Hi Blueblink01,
    Thanks for this formula that worked great, if possible can you please explain how you derive this formula and how does it works.
    Quote Originally Posted by blueblink01 View Post
    Hi warriorpoet7176 ,

    Please try this formula

    =INDEX(A2:A17,IF(COUNTA($B$2:$B$17)+1=COUNTA(C2:C17)+1,COUNTA($B$2:$B$17)+1,COUNTA($B$2:$B$17)))

    Regards,

  5. #5
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    Quote Originally Posted by JDoe314 View Post
    Try this:

    In cell E2 , put this function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In column G2 put this function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi JDoe,
    Thank You!!
    your idea really worked but I wanted it to get this problem resolve in one cell, here I need two cells to get single result.

    Still appreciate your effort & am very grateful to you

  6. #6
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    Hi Blueblink01,
    The original file is attached with this post I request you to kindly get this formula working on this sheet as well..

    File : Copy of Bll Book.xlsm

    Quote Originally Posted by warriorpoet7176 View Post
    Hi Blueblink01,
    Thanks for this formula that worked great, if possible can you please explain how you derive this formula and how does it works.

  7. #7
    Registered User
    Join Date
    03-22-2014
    Location
    Philippines
    MS-Off Ver
    Excel 2007,2010
    Posts
    39

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    HI Warriorpoet7176,

    I would like to ask why the file is saved as .xlsm? I guess Bill No in sheet 2,cell A2, will reflect "Codes" in sheet "Customer records"

    Please try this formula

    =INDEX('Customer Records'!$B$2:$B$23,IF(COUNTA('Customer Records'!$C$2:$C$23)+1=COUNTA('Customer Records'!$D$2:$D$23)+1,COUNTA('Customer Records'!$C$2:$C$23)+1,COUNTA('Customer Records'!$C$2:$C$23)))

    Thanks and Regards,

  8. #8
    Forum Contributor
    Join Date
    01-07-2014
    Location
    chandigarh
    MS-Off Ver
    Excel 2010
    Posts
    122

    Re: Need formula to find the next value in series by comparing values of adjacent cells

    Hi Blueblink01,
    Sorry for this late reply, didn't got time to check my account, The reason why this file was in Xlsm format becz this file has macros that are linked with the print button attached in this file to avoid long process of saving and printing the file.
    The formula you provided again as per my file worked perfectly, I am very very thankful to you for your continuous assistance and being in the link till my problem was not resolved.
    KUDOS for Blueblink01

    Thread Solved !!

    Quote Originally Posted by blueblink01 View Post
    HI Warriorpoet7176,

    I would like to ask why the file is saved as .xlsm? I guess Bill No in sheet 2,cell A2, will reflect "Codes" in sheet "Customer records"

    Please try this formula

    =INDEX('Customer Records'!$B$2:$B$23,IF(COUNTA('Customer Records'!$C$2:$C$23)+1=COUNTA('Customer Records'!$D$2:$D$23)+1,COUNTA('Customer Records'!$C$2:$C$23)+1,COUNTA('Customer Records'!$C$2:$C$23)))

    Thanks and Regards,
    Last edited by warriorpoet7176; 04-13-2014 at 06:59 AM.

+ 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. [SOLVED] Formula to SUM everything between adjacent cells to values x and y
    By reywas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2013, 10:01 AM
  2. comparing values in a series
    By DoctorWu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2013, 10:10 AM
  3. Replies: 7
    Last Post: 12-04-2012, 06:23 AM
  4. [SOLVED] Find empty cells in a range and insert formula in adjacent cell
    By macronovice1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-25-2012, 03:06 PM
  5. [SOLVED] Help writing a macro to find text and copy values to adjacent cells
    By Nnnnnnnick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 10:07 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