+ Reply to Thread
Results 1 to 3 of 3

Finding first and bottomlast years in large dataset

  1. #1
    Registered User
    Join Date
    01-29-2009
    Location
    madrid, spain
    MS-Off Ver
    Excel 2003
    Posts
    26

    Finding first and bottomlast years in large dataset

    Hi,

    I would need to find the first and last year with data for each country in a large table. There are also gap years in the middle. For example, in the attached file, the formula should give:

    Albania: first year with data --> 1995
    last year with data --> 2004

    Belgium: first year with data --> 1995
    last year with data --> 2008

    Is there any way to do this rather than by hand? (I have many variables and 157 countries...)

    Thanks a lot!
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,443

    Re: Finding first and bottomlast years in large dataset

    Hi,

    How about these two arrays,


    =MIN(IF(($B$5:$B$128="Albania")*(ISNUMBER(E5:$E$128)),$D$5:$D$128))
    =MAX(IF(($B$5:$B$128="Albania")*(ISNUMBER($E$5:$E$128)),$D$5:$D$128))


    Both should be confirmed with CTRL, SHIFT and ENTER
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    01-29-2009
    Location
    madrid, spain
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Finding first and bottomlast years in large dataset

    Great, thanks

+ 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