Excel Magic Trick 694: SUMIF Can't Handle Arrays. SUMIF(YEAR(A2:A10),2010,B2:B10) Won't Work

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,072
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 6, 2010

Learn about how the SUMIF function (and COUNTIF, etc.) cannot accept arrays. If you need to sum by year from transactional data the SUMIF and YEAR functions cannot be used together. Instead we can use the SUMPRODUCT function. Adding with 1 one criteria condition.
Download file: http://flightline.highline.edu/mgirvin/ExcelIsFun.htm

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • If you wnat to add the B column, use:

    =SUMPRODUCT(--(YEAR(A2:A10)=D3­),B2:B10)

  • this look more to counting but how to sum the qty to get total number?

  • That is for sure!

  • Perhaps some better error responses would help as well. :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more