+ Reply to Thread
Results 1 to 6 of 6

Need help with formual that will sum up a column under specific conditions.

  1. #1
    Registered User
    Join Date
    01-15-2012
    Location
    Noneofyourbusiness, CO
    MS-Off Ver
    Excel 2007
    Posts
    34

    Need help with formual that will sum up a column under specific conditions.

    In column A I have dates
    In column B I have project abbreviations (e.g.: "AX", "LB", "VH"...)
    In Column C I have progress

    I want to construct a formula that would add up the progress (these are footages) only if the program is the right abbreviation and the month is January. My goal is to have a table that will track the total progress for each program for every month during the year.

    Thank you for any help you can offer!

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Need help with formual that will sum up a column under specific conditions.

    You can use SUMIFS or Pivot Table.

    Can you please attach a dummy, so we can see the data layout. On bottom click Go Advanced, then Manage Attachments, browse & upload it.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need help with formual that will sum up a column under specific conditions.

    Maybe...

    =SUMPRODUCT(--(MONTH($A$1:$A$10)=1),--ISNUMBER(MATCH($B$1:$B$10,{"AX","LB","VH"},0)),$C$1:$C$10)

    This is based off of column A dates being actual dates
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    01-15-2012
    Location
    Noneofyourbusiness, CO
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Need help with formual that will sum up a column under specific conditions.

    Jeffreybrown you are an excel angel. Thank you so much!

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need help with formual that will sum up a column under specific conditions.

    You are very welcome and thank you for the comment, but compared to somebody such as Haseeb I have a lot to learn about formulas.

    As a matter of fact, I was looking forward to hearing what Haseeb had to say about how to do this with a Sumif so we can abandon the Sumproduct

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Need help with formual that will sum up a column under specific conditions.

    Say,

    Column A Dates
    Column B types like AX, LB, VH etc..
    Column C values

    F1 enter the Year eg: 2012
    E2 to down enter the months like January, or jan etc...

    Then F2, copy down.

    =SUM(SUMIFS($C:$C,$A:$A,">="&$E2&F$1,$A:$A,"<="&EOMONTH(1&$E2&K$1,0),$B:$B,{"AX","LB","VH"}))

    if you have more years enter them G1, H1 etc... then copy across formula. Pivot Table also workable.

+ 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