+ Reply to Thread
Results 1 to 6 of 6

Maximum Value For Each Item in List

  1. #1
    Registered User
    Join Date
    06-08-2009
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    73

    Cool Maximum Value For Each Item in List

    Hello,

    I've been searching for the best way to achieve this result.

    I have a spreadsheet with arounf 1500 rows.

    Column A Contains Location Names, Column B contains Department Names and Column contains employee count.

    I am trying to find a formula that will give me the department with the highest number of employees for each location.

    Any Help is greatly appreciated.

    Regards

    David

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Maximum Value For Each Item in List

    Hi

    Maybe using an Array MAX(IF formula.

    Something like this

    =MAX(IF(A1:A100=A1,BI:B100=B1,C1:C100)))

    But it's better yo upload a small sample workbook.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-08-2009
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    73

    Re: Maximum Value For Each Item in List

    Example.xlsx
    Hi Fotis, thanks for replying so quickly

    Here's a small example spreadsheet

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Maximum Value For Each Item in List

    Maybe in D2 and copy down?

    =SUMPRODUCT(($A$3:$A$35=A3)*($B$3:$B$35=B3)*($C$3:$C$35))

  5. #5
    Registered User
    Join Date
    06-08-2009
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    73

    Re: Maximum Value For Each Item in List

    I think I may have mislead with the question.

    I need to find which Pay Group is the most common for each Location.

    e.g. for Academic Centre A it would be WUPS for Academic Office it would be RTPS

    Regards

    David

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Maximum Value For Each Item in List

    Hi

    Let's try this.

    In g3 and copy down, put this Array formula(Confirm using Control+Shift+Enter-Not just Enter)

    Please Login or Register  to view this content.
    In H3 and copy down this Array formula.

    Please Login or Register  to view this content.
    Is this works for you?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-08-2009
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    73

    Re: Maximum Value For Each Item in List

    Thanks Fotis, works perfectly

+ 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