Results 1 to 2 of 2
  1. #1
    dastr is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    8

    advanced function

    Hi all,

    I have the below table:


    Name Score
    Anna 2
    Luisa 4
    Luisa 3
    Angel 1
    Angel 8
    Angel 7
    Angel 5
    Arlene 1


    And my output should be something like this (Column BEST)

    Name Score BEST
    Anna 2 1st best
    Luisa 4 2nd best
    Luisa 3 1st best
    Angel 1 1st best
    Angel 8 4th best
    Angel 7 3rd best
    Angel 5 2nd best
    Arlene 1 1st best


    The logic – if the name is the same (appears more than once), we need to look in the second column and compare the score, the lower the score, the higher “the best”. For example, if we have a single entry like Anna – it automatically becomes 1st best, in Luisa’s case (appears twice)– the lower score 3 is the 1st best; 4 is the 2nd best, etc, we can have only 1st,2nd,3rd and 4th best.
    Does anyone have any idea how I may achieve this? – getting column BEST?

    Thanks you in advance.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Looks like basic ranking:

    http://allenbrowne.com/ranking.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Advanced Crosstab query with SUM-function
    By ino_mart in forum Queries
    Replies: 3
    Last Post: 01-12-2012, 02:53 PM
  2. advanced filter
    By nkuebelbeck in forum Programming
    Replies: 1
    Last Post: 08-10-2011, 11:28 AM
  3. Advanced Query
    By Cined in forum Queries
    Replies: 1
    Last Post: 03-04-2011, 03:40 PM
  4. Advanced Searching
    By mbolster in forum Forms
    Replies: 3
    Last Post: 07-06-2010, 10:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums