Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (12)

Sign In or Sign Up now to post a comment!
  • I tried in different approach . i kept the formula much easy to understand and simple

    this is what i did .

    =SUMPRODUCT(--(TEXT($A$7:$A$21­0,"YYY")&TEXT($A$7:$A$210,"MMM­")=A4&B4))

    in this i dont need to create seperate cell or any other complicated countif

  • EXCELlent!!!!

    Cool solution!

  • ExcellsFun, I can't tell you how much I've learned from your videos! Thanks so much. I think this solution works using SUMPRODUCT. =SUMPRODUCT((A2=YEAR(A6:A11))*­(MONTH(1&B2)=MONTH(A6:A11)))

    Basically the Month(1&B2) is the key because this converts a text month into a numeric month.

  • That is amazing!!!! I had no idea that 1&FEB inside month = 2. Totally cool!!

    But SUMPRODUCT & TEXT means you just type two functions.

    I wonder which is faster calculating?? SUMP & TEXT or SUMP & YEAR & MONTH?

  • yep i wont work like that,however it will if we change the month dropdown from months-words to months-numbers...but that is not as per the "dueling rules" I guess)

    Thanks again!

  • Yes, you are right! If the Month Cell was a number your formula would work, This video was about what to do if you have words for months - which is the case sometimes in cross tabulated reports.

  • great video, thanks a lot!

    I got one more variant with boolean logic that might work:

    =sumproduct((month(A7:A210)=B4­)*(year(A7:A210)=A4))

    but we need to convert months to numbers...

  • That won't work becasue the month criteria is a word and the MONTH functions spits out a number...

  • I like Mike's TEXT formula, but I'm into the fancy formulas. thanks kevin

  • I am glad that you liked it!

  • Shalom mike and Bill,

    Relly great to learn from you guys!

    A Geart FUN !

    what about VBA ?

    will you teach this "fild" too?

    alraedy waiting for your next excel tricks....

    Shlomi

  • I am not good with VBA, so I do not teach that. I will have some new Excel Tricks soon!

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