+ Reply to Thread
Results 1 to 6 of 6

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
    36

    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 08:26 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    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

    Please Login or Register  to view this content.
    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    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,477

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


  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    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))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

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

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

    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.6.0 RC 1