+ Reply to Thread
Results 1 to 7 of 7

SUMIF with OR statement with YEAR function?

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    SUMIF with OR statement with YEAR function?

    Hi Excellers,

    How may I correctly write the formula below:
    Please Login or Register  to view this content.
    like this to create dynamic OR statement in years:
    Please Login or Register  to view this content.
    For some reason, it will not allow me to insert formulas within the brackets.

    Thank you for your time...

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: SUMIF with OR statement with YEAR function?

    Hello
    Perhaps you could try using SUMPRODUCT, for example:

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


    I don't believe SUMIF will accept an array {} as a criteria.

    Hope this helps.
    DBY

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMIF with OR statement with YEAR function?

    Hi.

    Construct it like this:

    =SUM(SUMIF(G5:G10,YEAR(TODAY())-{0,1},E5:E10))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: SUMIF with OR statement with YEAR function?

    I don't believe SUMIF will accept an array {} as a criteria.
    Famous last words! Apparently it does! Nice one XOR.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMIF with OR statement with YEAR function?

    Quote Originally Posted by DBY View Post
    Famous last words! Apparently it does! Nice one XOR.
    Cheers!

  6. #6
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: SUMIF with OR statement with YEAR function?

    Thanks, XOR LX. Your suggestion worked!

    Marking this as SOLVED.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMIF with OR statement with YEAR function?

    You're welcome!

+ 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. Sumif with in the same month and year
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-08-2015, 06:54 PM
  2. [SOLVED] Sumif by Year - Horizontally
    By mrr2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2013, 03:21 PM
  3. [SOLVED] Sumif year
    By Cbrehm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2012, 09:50 AM
  4. [SOLVED] sumif year
    By allgeef in forum Excel General
    Replies: 2
    Last Post: 09-24-2012, 12:58 PM
  5. Using SUMIF with YEAR function in Criteria
    By PosseJohn in forum Excel General
    Replies: 2
    Last Post: 06-20-2011, 03:24 PM
  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. Sumif for a given year
    By marksuza in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2008, 08:45 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