+ Reply to Thread
Results 1 to 5 of 5

Ranking using a medium data set

  1. #1
    Registered User
    Join Date
    03-30-2011
    Location
    Northampton, England
    MS-Off Ver
    MS Office 2010 Professional Plus
    Posts
    14

    Ranking using a medium data set

    Hi,

    Been a member for a few months now and I can't find the answer to this anywhere.

    I got a medium sized quality database (in Excel - i know) that has these columns (plus some more)

    Name (Col A)
    Date (Col G)
    Error Reason (Col E)
    Week # (Col O)
    Week # & Name (Concatenated) (Col R)

    What I want without using a pivot table or VBA if possible is to be able to say tell me the top 3 error reasons for person X for week num X. I know this can be done easily with a pivot table but I'm trying to stay away from that for ease of use reasons.

    I've tried sumproduct, rank & countif with no luck.

    Any help would be greatly received!

    Thanks,

    Scott

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703

    Re: Ranking using a medium data set

    Hello Scott, try this setup....

    In T2 specify week number and in T3 name and then in T4 use this formula

    =INDEX(E$2:E$1000,MODE(IF(R$2:R$1000=T$2&T$3,IF(E$2:E$1000<>"",IF(COUNTIF(T$3:T3,E$2:E$1000)=0, MATCH(E$2:E$1000,E$2:E$1000,0))))))

    confirmed with CTRL+SHIFT+ENTER and copied down to T6 to give the top three error reasons

    For a count of each use this formula in U4 copied down to U6

    =SUMPRODUCT((E$2:E$1000=T4)*(R$2:R$1000=T$2&T$3))

    Assumes 1000 rows of data, extend as required
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-30-2011
    Location
    Northampton, England
    MS-Off Ver
    MS Office 2010 Professional Plus
    Posts
    14

    Re: Ranking using a medium data set

    Quote Originally Posted by daddylonglegs View Post
    Hello Scott, try this setup....

    In T2 specify week number and in T3 name and then in T4 use this formula

    =INDEX(E$2:E$1000,MODE(IF(R$2:R$1000=T$2&T$3,IF(E$2:E$1000<>"",IF(COUNTIF(T$3:T3,E$2:E$1000)=0, MATCH(E$2:E$1000,E$2:E$1000,0))))))

    confirmed with CTRL+SHIFT+ENTER and copied down to T6 to give the top three error reasons

    For a count of each use this formula in U4 copied down to U6

    =SUMPRODUCT((E$2:E$1000=T4)*(R$2:R$1000=T$2&T$3))

    Assumes 1000 rows of data, extend as required
    Thanks for this it works great! How do I make it display their second and third most?

    Thanks again for your help.

    Scott

  4. #4
    Registered User
    Join Date
    03-30-2011
    Location
    Northampton, England
    MS-Off Ver
    MS Office 2010 Professional Plus
    Posts
    14

    Re: Ranking using a medium data set

    Ignore the above, was being dumb. Thanks again for the help. But I've noticed if there is only 1 of an item it will #N/A anyway I can combat this so it will display it?

    Thanks again.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703

    Re: Ranking using a medium data set

    If you make this small change then the formula will return even single values

    =INDEX(E$2:E$1000,MODE(IF(R$2:R$1000=T$2&T$3,IF(E$2:E$1000<>"",IF(COUNTIF(T$3:T3,E$2:E$1000)=0, MATCH(E$2:E$1000,E$2:E$1000,0)*{1,1})))))

    still confirmed with CTRL+SHIFT+ENTER

+ 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