+ Reply to Thread
Results 1 to 4 of 4

Subtotals

  1. #1
    Registered User
    Join Date
    11-16-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    31

    Question Subtotals

    Hello,

    I am trying to produce a spreadsheet for work that shows the total of recycled material (known as Jenco) used during an order.

    We have 2 business units (Unit 5 & Unit 7) who both use Jenco.

    I have produced a sheet that records how much Jenco was planned and how much was actually used.

    Is there a function that gets a total based on a condition?

    For example - 'total of planned Jenco WHERE the Business Unit = 5' ?

    I can do this by auto filtering the data and using the 'Subtotal' function but I need to achieve this without having to filter the data so I can have a permanent cell showing the totals.

    I have attached an example with some dummy data and higlighted the fields in red that I need.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Subtotals

    Try SUMIF()

    e.g

    =SUMIF($D$12:$D$112,5,$E$12:$E$112)

    and

    =SUMIF($D$12:$D$112,7,$E$12:$E$112)

    edit: Added absolute referencing to first range.
    Last edited by NBVC; 11-25-2010 at 02:52 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-16-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2003
    Posts
    31

    Talking Re: Subtotals

    You hero.

    For a minute there didnt think it worked but I had done it wrong.

    Thank you, been racking my brain for ages.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Subtotals

    Note:

    In my samples, I had neglected to add absolute referencing (i.e. the $ signs) to "freeze" the column ranges.... I fixed that.

    If you are going to be copying down a formula that is when it is more critical.

+ 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