+ Reply to Thread
Results 1 to 4 of 4

Sumifs question

  1. #1
    Registered User
    Join Date
    12-28-2010
    Location
    Atlanta, GA
    MS-Off Ver
    2003 and 2010
    Posts
    27

    Sumifs question

    Hello,
    I have a sumifs that is calculating YTD, and I want this to dynamically change.

    I have a simple table with 3 variables; Year, Month, and Revenue. The following code would be YTD October. Let's say B2 has the value Oct-1-2011

    Current code:
    Please Login or Register  to view this content.
    How can I replace the "<=10" to reference the month(B2) variable?

    Thanks!
    Last edited by RussellNonBrand; 11-08-2011 at 02:03 PM.

  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,366

    Re: Sumifs question

    =SUMIFS(<sum range>,<year variable range>,Year(B2),<month number range>,"<="&Month(B2))


    Regards, TMS
    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
    Registered User
    Join Date
    12-28-2010
    Location
    Atlanta, GA
    MS-Off Ver
    2003 and 2010
    Posts
    27

    Post Re: Sumifs question

    grr that was too easy. thanks.

  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,366

    Re: Sumifs question

    You're welcome ... only easy if you know.

    They say, the only hard questions are the ones you don't know the answer to.

    Regards, TMS

+ 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