+ Reply to Thread
Results 1 to 6 of 6

How to find highest sum of multiple items in Excel

  1. #1
    Registered User
    Join Date
    11-15-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    How to find highest sum of multiple items in Excel

    Let's say we have a table like this in excel. How we can formulate finding the office with the highest total cost in the database?

    Office Day Cost
    Chicago 1/10/2021 $17,720.00
    NY 1/10/2021 $15,668.00
    Toronto 1/10/2021 $14,704.00
    London 1/10/2021 $20,280.00
    Chicago 2/10/2021 $51,366.00
    NY 2/10/2021 $17,213.00
    Toronto 2/10/2021 $15,372.00
    London 2/10/2021 $14,004.00
    Chicago 3/10/2021 $24,354.00
    NY 3/10/2021 $33,125.00
    Toronto 3/10/2021 $16,902.00
    London 3/10/2021 $35,856.00
    Chicago 4/10/2021 $20,154.00
    NY 4/10/2021 $15,095.00
    Toronto 4/10/2021 $28,905.00
    London 4/10/2021 $32,868.00
    Chicago 5/10/2021 $45,012.00
    NY 6/10/2021 $27,368.00
    Toronto 7/10/2021 $13,890.00
    London 8/10/2021 $36,760.00

    Please note the database has many more rows and column so i made it simpler.

    Thanks
    Last edited by Ferii; 11-15-2021 at 03:59 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: How to find highest sum of multiple items in Excel

    Your simplest way would be to do a pivot table by city and sort by sales (your value field as a sum) descending. you could even filter for top 1 to just return the highest value

  3. #3
    Registered User
    Join Date
    11-15-2021
    Location
    USA
    MS-Off Ver
    365
    Posts
    2

    Re: How to find highest sum of multiple items in Excel

    Thanks for that. is there anyway to do it without a pivot table and through a formula?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,493

    Re: How to find highest sum of multiple items in Excel

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: How to find highest sum of multiple items in Excel

    If your date is in columns A to C perhaps
    To find the maximum value in cell f2
    =MAX(SUMIF(A2:A21,UNIQUE(A2:A21),C2:C21))

    to find the office it corresponds to
    =INDEX(UNIQUE(A2:A21),MATCH(F2,SUMIF(A2:A21,UNIQUE(A2:A21),C2:C21),0))

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: How to find highest sum of multiple items in Excel

    Maybe so? PQ
    l
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Czeslaw; 11-15-2021 at 09:04 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2019, 04:02 AM
  2. Replies: 3
    Last Post: 06-09-2016, 12:51 PM
  3. Replies: 5
    Last Post: 12-20-2013, 10:36 PM
  4. [SOLVED] find highest value from multiple entries
    By warston in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2013, 03:31 PM
  5. [SOLVED] How can I find out the highest items?
    By migdad in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-12-2012, 06:42 AM
  6. VBA code to find highest and 2nd highest number based in criteria
    By Michael007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2011, 08:38 AM
  7. Find highest value out of multiple values
    By Jen5309 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2011, 10:47 AM

Tags for this Thread

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