+ Reply to Thread
Results 1 to 22 of 22

display lowest 4 values from 6

Hybrid View

  1. #1
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730
    If you have blanks in the "Placings" column, B2:B24 in my example, change formula in F2 to

    =SMALL(IF($A$2:$A$24=$D2,IF ($B$2:$B$24<>"",$B$2:$B$24)),COLUMNS($F2:F2))

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730
    ...also if you want to prevent errors in the scenario where a team has less than 4 placings make a further change to

    =IF(COLUMNS($F2:F2)>SUM(($A$2:$A$24=$D2)*(ISNUMBER($B$2:$B$24))),"",SMALL(IF($A$2:$A$24=$D2,IF($B$2:$B$24<>"",$B$2:$B$24)), COLUMNS($F2:F2)))

  3. #3
    Registered User
    Join Date
    11-04-2007
    Posts
    15
    This is brilliant - excatly what I am looking for. However there is one more item that needs to be figured out. I have another forumla which is giving the values in both columns A & B, so some of them are 'empty' and showing #N/A. So those formulae seem to be given a value of zero in a set of data with #N/A is present. Is there a way to tell the formulae to ignore #N/A entries?

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730
    It would probably be easier to change the formulas in columns A and B to return blanks rather than #N/A, what formulas do you have returning #N/A?

  5. #5
    Registered User
    Join Date
    11-04-2007
    Posts
    15
    Yes, I guess you are right. Right now I have:

    =LOOKUP(A29,Entries!$A$4:$E$387)

    Which takes values from a database on another tab/sheet

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,730
    What's in A29? That formula can give a "closest match" result even if A29 isn't found in Entries!$A$4:$A$387. If you only want an exact match, without #N/A try

    =IF(LOOKUP(A29,Entries!$A$4:$A$387)=A29,LOOKUP(A29,Entries!$A$4:$E$387),"")

  7. #7
    Registered User
    Join Date
    11-04-2007
    Posts
    15
    a unique reference number (runner's bib number) is in A29. I tried your formula, but the #N/A remains #N/A. This is still a ctl+shift+enter 'array' formula right?
    Last edited by sdavis79; 11-05-2007 at 10:56 AM.

+ 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