+ Reply to Thread
Results 1 to 5 of 5

Sumifs

  1. #1
    Forum Contributor
    Join Date
    11-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    390

    Sumifs

    Hi All,

    I have a Database showing propoerty name (which each has multiple enteries), Dates, Fuel type (diesel or petrol), and costs. I have them in a table called table1. I have another table which I want to sum the values based upon different criteria.

    I have used the following formula to sum the values of each property and a specific fuel type.

    =SUMIFS(Table1[CO2 Emission (tonnes/a)],Table1[Property Code],[@[Property Code]],Table1[Fuel Type],[@[Fuel Type]])

    this gives me the value for the entire year. what should I add to the above formula to sum the values only for Jan,Fen and mar?

    Thanks,

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Sumifs

    Hi hanif,

    Instead of using SumIFS for a formula, I'd do a Pivot Table. If you make your Dates the first Row item in the pivot, you can group by months, you could also make the fuel type a column and the emission the value. If you attach a sample workbook, we can show you how to Pivot your data to get what I think you want, without a formula.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    390

    Re: Sumifs

    Thanks Marvin, I was actually trying to get something else but the idea of Pivot Table helped.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Sumifs

    Hi,

    For SUMIFS you could use something like this
    =SUMIFS(Table1[CO2 Emission (tonnes/a)],Table1[Property Code],[@[Property Code]],Table1[Fuel Type],[@[Fuel Type]],Table1[Date],">="&date(2017,1,1),Table1[Date],"<"&date(2017,4,1))
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Forum Contributor
    Join Date
    11-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    390

    Re: Sumifs

    thank you this is exactly what I was looking at.

    Quote Originally Posted by xlnitwit View Post
    Hi,

    For SUMIFS you could use something like this
    =SUMIFS(Table1[CO2 Emission (tonnes/a)],Table1[Property Code],[@[Property Code]],Table1[Fuel Type],[@[Fuel Type]],Table1[Date],">="&date(2017,1,1),Table1[Date],"<"&date(2017,4,1))

+ 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: 0
    Last Post: 08-22-2017, 03:49 PM
  2. [SOLVED] Sumifs formula without using sumifs....
    By blockbyblock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2017, 10:45 AM
  3. [SOLVED] If no SUMIFS matches, 1, otherwise the SUMIFS result...
    By JYTS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2016, 07:39 PM
  4. sumifs vs. Application.WorksheetFunction.SumIfs
    By flooyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2016, 11:22 AM
  5. [SOLVED] Looking for something simpler than SUMIFS - SUMIFS
    By YAbdelaal in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2014, 10:38 AM
  6. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  7. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM

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