+ Reply to Thread
Results 1 to 6 of 6

How to get data from different years (2011+to start the same year (Year1+)

  1. #1
    Registered User
    Join Date
    04-13-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    How to get data from different years (2011+to start the same year (Year1+)

    Hi everyone, you can help me with this one-

    I would like to know how to construct a formula that will look through a table and insert the first data >0 as Y1 and then the following rows in Y2, Y3 etc. Please see before and the desired after result by clicking below

    nullalize.jpg

    Excel sheet with data to be manipulated can be found here: Excel sheet to be used.xls

    thanks for your help!
    Last edited by barelyadraft; 04-13-2011 at 07:36 AM. Reason: Solved

  2. #2
    Forum Contributor
    Join Date
    12-26-2008
    Location
    India
    MS-Off Ver
    2007
    Posts
    122

    Re: How to get data from different years (2011+to start the same year (Year1+)

    Hi,

    Plz post a sample spreadsheet, with sample data and desired result for better response.

    Vinod

  3. #3
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: How to get data from different years (2011+to start the same year (Year1+)

    see the attached file
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get data from different years (2011+to start the same year (Year1+)

    try this uses
    =IF(COLUMN(A1)>COUNT($B2:$G2),"",INDEX($B2:$G2,MATCH(TRUE,INDEX(($B2:$G2<>0),0),0)+COLUMN(A1)-1)) thus avoiding indirect which can be a pain on large data sets
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    04-13-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Thumbs up Re: How to get data from different years (2011+to start the same year (Year1+)

    Quote Originally Posted by Vinodsralian View Post
    Hi,

    Plz post a sample spreadsheet, with sample data and desired result for better response.

    Vinod
    done

    Note that it's European notation (semikolon used instead of comma as septation of inputs). Just mentioning if Excel does not convert automatically (which I doubt :X)

  6. #6
    Registered User
    Join Date
    04-13-2011
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: How to get data from different years (2011+to start the same year (Year1+)

    Quote Originally Posted by martindwilson View Post
    try this uses
    =IF(COLUMN(A1)>COUNT($B2:$G2),"",INDEX($B2:$G2,MATCH(TRUE,INDEX(($B2:$G2<>0),0),0)+COLUMN(A1)-1)) thus avoiding indirect which can be a pain on large data sets
    nevermind, thanks!
    Last edited by barelyadraft; 04-13-2011 at 08:01 AM. Reason: I was mistaken

+ 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