+ Reply to Thread
Results 1 to 5 of 5

Lookup and Rank(?)

  1. #1
    Registered User
    Join Date
    05-27-2008
    Posts
    7

    Lookup and Rank(?)

    Hi

    I have a large data set containing survey results at a set number of sites.
    The surveys are done periodically so the dataset contains multiple rows for each site, the date the survey was done being the variable.

    I want to be able to create a list of all sites and lookup from the dataset just the latest survey result.

    Is this possible?

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Yes indeed - and welcome to the forum.
    Probably the easiest of no doubt several ways is as follows. It assumes the Site references are in col A, dates in col B and results in col c. Make sure the list is sorted by primary column A, and secondary column B in ascending order. Now create your unique list of sites in col D and eneter the following in E1 and copy down.

    Please Login or Register  to view this content.
    Adjust column references as necessary for your data.

    HTH

  3. #3
    Registered User
    Join Date
    05-27-2008
    Posts
    7
    Thanks RB, works well.

  4. #4
    Registered User
    Join Date
    05-27-2008
    Posts
    7
    I have discovered a slight flaw in this that is corrupting my results:

    If a site in my list hasn't had a survey the above formula returns the value from the site above it in the list.

    Is there a way to stop it returning a value if there hasn't been a survey?

    Cheers

  5. #5
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =IF(LOOKUP(D1,A2:A100)=D1,INDEX(C2:C100,MATCH(D1,A2:A100),1),"")

    or

    =IF(LOOKUP(D1,A2:A100)=D1,LOOKUP(D1,A2:A100,C2:C100),"")

    Hope this helps!

+ 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