+ Reply to Thread
Results 1 to 5 of 5

Sum column if 2 other columns meet text and date criteria

  1. #1
    Registered User
    Join Date
    12-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Sum column if 2 other columns meet text and date criteria

    This may be very basic, and I am not sure if I can describe it well, but what I am trying to do is sum a column of dollar values if the corresponding cells meet date criteria and category criteria. So
    A B C
    1/15/2012 $15.90 Parking
    3/24/2012 $14.25 Equipment

    I am trying to populate monthly expense table on a different tab,and have it classified by category, month and year.

    Jan 2012
    Euipment
    Parking
    etc.

    So if Col A is in Jan 2012, column C is "Parking then sum column B,

    I'm sure there are multiple ways to do this, but please don't tell me to use a macro.

    Thanks.

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

    Re: Sum column if 2 other columns meet text and date criteria

    How's this sample...
    Attached Files Attached Files
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    12-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Sum column if 2 other columns meet text and date criteria

    Thank you!!

    Can you tell me what the -- does?

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Sum column if 2 other columns meet text and date criteria

    Hello alanelizabeth,

    Welcome to the Forum.

    Can you tell me what the -- does?
    True or False don't have a stored value in Excel ie: 1 or 0

    The "--" coerces the Boolean returns of TRUE and FALSE to 1 and 0

    Since you have asked your data to be summarised on a different tab, I have altered the WorkBook, jeffreybrown sent you. (Hope he doesn't mind.)

    Also see the "Please consider" note at the bottom of this post.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

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

    Re: Sum column if 2 other columns meet text and date criteria

    Quote Originally Posted by Winon View Post
    Hope he doesn't mind.
    No worries...the more the merrier.

    To add to Winon's comments, the "--" comes down to a preference issue as there are other methods which do the same thing.

    I mostly learned with using "--" so I stick with it, but this resource will give you other options. Sumproduct

    Note: Keep in mind, SUMPRODUCT is a very powerful function, however, with 2007+ there are more efficient functions.

    SUMIFS and COUNTIFS to name a couple. In the case of your query, SUMPRODUCT was the best choice.

+ 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