+ Reply to Thread
Results 1 to 7 of 7

nested sumif statement help (is that the correct term?)

  1. #1
    Registered User
    Join Date
    01-16-2019
    Location
    Florida
    MS-Off Ver
    2016 excel
    Posts
    2

    nested sumif statement help (is that the correct term?)

    Hi guys,

    I have a spreadsheet with a transaction type in Column A, Transaction Date in Column B, and a dollar amount in Column F.

    I'm looking to sum the dollar amounts for a specific transaction type for today's date only.

    I"m using the equation below and it works great besides pulling only today's "N" transactions. For now, i have to copy and paste all rows for today's transactions into sheet2, and then the formula's are run and displayed on sheet3. What am i missed to run this using a requirement of today's date?

    Thank you!


    =SUMIF(Sheet2!A2:Sheet2!A500000, "N", Sheet2!S2:Sheet2!S500000)
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: nested sumif statement help (is that the correct term?)

    Use SUMIFS instead of SUMIF.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: nested sumif statement help (is that the correct term?)

    You can use the SUMIFS function where you have multiple conditions, and this can act directly on the data in Sheet1. The syntax is a bit different than SUMIF. Put this in I2 of Sheet1:

    =SUMIFS(F:F,B:B,"01/18/2019",A:A,"N")

    I'm not sure why you show the date as 16th in Sheet2. You can replace that date (and the quotes) with TODAY() if you wish, and if N is contained in H2, then you might have this:

    =SUMIFS(F:F,B:B,TODAY(),A:A,H2)

    which can easily be copied down if you have other values in column H.

    Hope this helps.

    Pete

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: nested sumif statement help (is that the correct term?)

    Just to build on Pete's suggestion, rather than use TODAY() directly in your formula, put it in a cell and refer to that instead. So this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    could become
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    That's because TODAY() is a volatile function and you don't want lots of calculations.

  5. #5
    Registered User
    Join Date
    01-16-2019
    Location
    Florida
    MS-Off Ver
    2016 excel
    Posts
    2

    Re: nested sumif statement help (is that the correct term?)

    You guys are great! Thanks so much!

  6. #6
    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,929

    Re: nested sumif statement help (is that the correct term?)

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: nested sumif statement help (is that the correct term?)

    You're welcome. Thanks for the rep.

+ 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: 2
    Last Post: 02-09-2017, 12:09 PM
  2. Nested IF statement or correct function required?
    By mlester in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2013, 02:40 PM
  3. Nested VLOOKUP & SUMIF in IF STATEMENT with several variables
    By sarahw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 02:47 PM
  4. Syntax for a conditional or nested SUMIF statement
    By teacherofkids in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2013, 01:50 PM
  5. how to created nested if statement using SUMIF
    By Seb62 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2013, 09:01 AM
  6. Nested SUMIF statement or multiple SUMIF's
    By Dan27 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2009, 06:55 AM
  7. Nested SumIf statement
    By jlhart76 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-18-2006, 12:27 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