+ Reply to Thread
Results 1 to 6 of 6

Thread: Sum certain cells in a column if they meet criteria in seperate column

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Beijing, China
    MS-Off Ver
    Excel 2010
    Posts
    20

    Sum certain cells in a column if they meet criteria in seperate column

    I'm trying to sum only certain values in column F if they are inthe range in column B, ie column F amounts have values from all months, but I just want to sum the cells related to the month of Jan., a which is column B

    =SUMIF(B9:B39,"<=12/31/2011", F9:F39) I used this and it worked for anything <= Dec. 31. Dec. was the starting month in my list.


    =SUMIF(B9:B39,"1/1/2012:1/31/2012",F9:F39) Now I'm trying to set up something like this, only sum the cells in F that occured in the month on Jan.

    Any help is greatly appreciated
    Last edited by hlep; 12-02-2011 at 07:26 AM.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Sum certain cells in a column if they meet criteria in seperate column

    Hi,

    With the first date/day of your reference month in say C2, i.e. for January 01/01/2012

    =SUMIFS(B:B,A:A,">="&C1,A:A,"<="&EOMONTH(C1,0))
    Regards
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,222

    Re: Sum certain cells in a column if they meet criteria in seperate column

    =SUMIFS(F9:F39,B9:B39,">=1/1/2012",B9:B39,"<=1/31/2012")


    Regards, TMS

  4. #4
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    3.0
    Posts
    2,472

    Re: Sum certain cells in a column if they meet criteria in seperate column

    Hi,

    Does this do as you ask?

    =SUMPRODUCT((F9:F39)*(MONTH(B9:B39)=1))

    to include the year as well,

    =SUMPRODUCT((F9:F39)*(MONTH(B9:B39)=1)*(YEAR(B9:B39)=2012))
    Please disregard anything in the above post. It may well have been edited without my consent, as has been the case with several posts and threads recently.

  5. #5
    Registered User
    Join Date
    12-02-2011
    Location
    Beijing, China
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Sum certain cells in a column if they meet criteria in seperate column

    All of the above worked. Thank you

  6. #6
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,222

    Re: Sum certain cells in a column if they meet criteria in seperate column

    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)

Tags for this Thread

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.2.0