+ Reply to Thread
Results 1 to 7 of 7

SUMIFS help!

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    SUMIFS help!

    Excel 2007

    A simple ledger where column A are dates...01/04/2013, etc.
    cloumn b is categories... "Groceries" or "Fuel" or "Office Supplies"
    column c is dollar amounts.... "$42.02", $14.92", etc.

    I want to return the sum of all values from column C that were groceries in the month of January (or between 01/01/2013 and 01/31/2013, or any other date range I choose)

    SUMIFS? I can figure out how to do it to return the sum of all groceries, but can't figure out how to incorporate the date range.

    Thanks!!!

  2. #2
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: SUMIFS help!

    Hi,

    This may help....

    =SUMPRODUCT(--(MONTH(A$1:A$50)=F1)*(B$1:B$50=F2),C$1:C$50)

    where F1=month serial no. (1 for Jan); F2=categories

    change the range/referances as per your data.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMIFS help!

    Hi CaptainO,

    Welcome to the forum.
    See the attached file where I have used below formula:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    sumif dates in between.xlsx

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    01-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: SUMIFS help!

    PERFECT! These both work! nested.if1... can you explain what the -- is in your formula?

  5. #5
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: SUMIFS help!

    Quote Originally Posted by CaptainO View Post
    PERFECT! These both work! nested.if1... can you explain what the -- is in your formula?
    Hi,

    Sorry for the confusion, It was actually not required there as we are using SUMPRODUCT with multiplication.

    If you use SUMPRODUCT with commas, you need to turn true/false values into numbers first by doing math. (I prefere to do it by using "--")

    If you use SUMPRODUCT with multiplication, you’re already doing math so you don’t need it.

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

    Re: SUMIFS help!

    Hi,

    Here is a method to do this problem without needing any formulas. You simply drop and drag fields to a Pivot Table.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: SUMIFS help!

    Hi CaptainO

    SUMIFS version as requested!
    Attached Files Attached Files
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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