+ Reply to Thread
Results 1 to 2 of 2

Finding next row of information

Hybrid View

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    9

    Finding next row of information

    I have a huge table of data. The most important information is Item, Date, Number One, and Number Two. The data is not in order and is constantly being sorted. Right now, I can produce a table that allows the user to pick any random date and see what set of numbers are associated with all the items on the list, and the date these numbers occurred. You can call this the "current" set of information.

    I need to be able to produce another table of what the "next" set of numbers and date for each item will be. The set of numbers only increase, and it is never by the same amount.

    Right now for the "current" set of information I am using
    A2 = Item1
    Q3 = Date the user can input to see what the "current" version is at the time

    Example: Produce Number One for Item1
    =IFERROR(INDEX(C2:C12,MATCH(A2&MAX(IF((A2:A12=A2),IF(B2:B12<=Q3,B2:B12))),A2:A12&B2:B12,0)),0)

    This connects the Item and Date together to find Number One and displays that current one. The index changes for Date, Number One and Number Two.

    Example of original data. Data is never in order, it is always being sorted.
    Item-----Date-------Number One---Number Two
    Item1----1/1/14--------2------------1
    Item1----1/1/15--------2------------3
    Item1----1/1/16--------4------------7
    Item1----1/1/17--------6------------11
    Item2----2/1/15--------2------------3
    Item2----2/1/16--------2------------5
    Item2----2/1/17--------2------------7
    Item2----2/1/18--------8------------9
    Item3----3/1/16--------2------------1
    Item3----3/1/17--------2------------3
    Item3----3/1/18--------2------------9


    Example of "current" data to use. User selects date as 4/1/16. My formula will produce the current information.
    Item-----Date-------Number One---Number Two
    Item1----1/1/16--------4------------7
    Item2----2/1/16--------2------------5
    Item3----3/1/16--------2------------1


    I need formulas to create the "next" sets in line. There would be a formula for Date, Number One, and Number Two. So the next table should produce
    Item-----Date-------Number One---Number Two
    Item1----1/1/17--------6------------11
    Item2----2/1/17--------2------------7
    Item3----3/1/17--------2------------3

    I am having trouble finding a formula that finds the next set of numbers since the numbers are not evenly increased. And with the data always being sorted, I have to be careful with an INDEX-MATCH and cannot use row functions.

    This is a continuation of another thread I made. I added more information throughout the thread so I made a new one to put it all in one post. One user suggested a formula, but it only works if the numbers increase by the same amount.
    https://www.mrexcel.com/forum/excel-...t-numbers.html
    Last edited by toongal12; 02-02-2017 at 02:51 PM.

  2. #2
    Registered User
    Join Date
    02-02-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    9

    Re: Finding next row of information

    bumpbumpbump

+ 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. Finding the greatest date in a list
    By satania in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2013, 11:30 AM
  2. Finding the greatest 2 out of 3 cells?
    By crawley in forum Excel General
    Replies: 3
    Last Post: 10-30-2012, 01:59 AM
  3. Finding the Greatest Number
    By HHR in forum Excel General
    Replies: 6
    Last Post: 12-30-2010, 11:09 AM
  4. finding the greatest number
    By jpc036 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2007, 11:47 AM
  5. Replies: 2
    Last Post: 06-23-2006, 02:45 AM
  6. Finding the greatest value
    By t2true in forum Excel General
    Replies: 4
    Last Post: 03-20-2006, 09:55 PM
  7. [SOLVED] Finding The Nth Greatest Value Meeting Criteria
    By Clara in forum Tips and Tutorials
    Replies: 23
    Last Post: 10-07-2005, 02:08 AM
  8. finding the n th greatest value based on a condition
    By adnan buran in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2005, 07:55 AM

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