+ Reply to Thread
Results 1 to 16 of 16

Conditional Columns

Hybrid View

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditional Columns

    You could use Pivot tables or with January in D2, in E2

    =SUMPRODUCT(--(TEXT($A$2:$A$19,"mmmm")=D2),$B$2:$B$19) dragged down
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Conditional Columns

    Quote Originally Posted by ChemistB View Post
    You could use Pivot tables or with January in D2, in E2

    =SUMPRODUCT(--(TEXT($A$2:$A$19,"mmmm")=D2),$B$2:$B$19) dragged down
    Does that work for you?
    That would give you the sum. To average it, try

    =SUMPRODUCT(--(TEXT($A$2:$A$19,"mmmm")=D2),$B$2:$B$19)/SUMPRODUCT(--(TEXT($A$2:$A$19,"mmmm")=D2))

  3. #3
    Registered User
    Join Date
    07-18-2012
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Columns

    Quote Originally Posted by BenMiller View Post
    That would give you the sum. To average it, try

    =SUMPRODUCT(--(TEXT($A$2:$A$19,"mmmm")=D2),$B$2:$B$19)/SUMPRODUCT(--(TEXT($A$2:$A$19,"mmmm")=D2))
    When I tried this, I got #DIV/O!

  4. #4
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Conditional Columns

    What do you have in D2?

  5. #5
    Registered User
    Join Date
    07-18-2012
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Columns

    Quote Originally Posted by BenMiller View Post
    What do you have in D2?
    "February" its a text cell

  6. #6
    Registered User
    Join Date
    07-18-2012
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Conditional Columns

    Monthly Average.xlsxHere is an example:

  7. #7
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Conditional Columns

    Can't open that, sorry I have 2003

+ 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