+ Reply to Thread
Results 1 to 3 of 3

calculate total for departments

  1. #1
    Registered User
    Join Date
    01-14-2016
    Location
    Leeds, Unuted Kingdom
    MS-Off Ver
    2016
    Posts
    2

    calculate total for departments

    Hi All,

    I am new here but have used Excel for a long time and I have come up against a problem and not too sure of the best solution.

    I have a spreadsheet which looks similar to the below

    Department Cost
    Department 1 £50
    department 2 £20
    Department 1 £215
    Department 3 £5
    Department 3 £456
    Department 2 £123
    Department 1 £57

    I need a cell on another sheet (same workbook) to give me the total for Department 1 then another for Department 2 ......

    I know I could add an extra columns to the right side for each department but I would like to avoid this if possible, and to make it even more complicated I need to avoid macros as it needs to be useable in O365 web interface. There will likely be many many rows of data.

    any ideas will be great, I am currently stuck

    many thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: calculate total for departments

    With your sample data in Sheet1, beginning in cell A1

    and this setup on Sheet2
    A
    B
    1
    Department
    Total Cost
    2
    Department 1
    3
    department 2
    4
    Department 3

    This formula, copied down, returns the total cost for the referenced department
    Please Login or Register  to view this content.
    These are the results for the above example
    A
    B
    1
    Department
    Total Cost
    2
    Department 1
    322
    3
    department 2
    143
    4
    Department 3
    461

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    01-14-2016
    Location
    Leeds, Unuted Kingdom
    MS-Off Ver
    2016
    Posts
    2

    Re: calculate total for departments

    AMAZING!!!!!

    Exactly what I needed. many thanks for the super fast response!!!!!

+ 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. Which formula for splitting the total cost between departments?
    By grandpacool in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2015, 12:26 PM
  2. Replies: 3
    Last Post: 03-06-2014, 12:48 AM
  3. [SOLVED] Formula for how many from each of the three departments are attending
    By gdub72 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-01-2013, 08:15 AM
  4. Calculate varying % of Total depending on total sum.
    By mwest316 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-02-2013, 01:59 PM
  5. [SOLVED] Extract info for Various Departments
    By overbomb in forum Excel General
    Replies: 2
    Last Post: 02-06-2013, 09:35 AM
  6. Macro Help - Multiple Departments
    By HRBonne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2010, 07:02 PM
  7. Sum sales from a list of departments
    By atbryant in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-01-2009, 01:50 PM

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