+ Reply to Thread
Results 1 to 3 of 3

Sum one column based on two criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Mesquite, Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Sum one column based on two criteria

    I'm trying to modify a budget worksheet that currently shows the monthly totals spent for each category to show the totals for the first half and second half of the month. I have a tab named transactions that contains data which is essentially a check register. The date of transaction is in column B, the categories are in column F and the amounts are in column J. The front page is the overview for the month, and cell E4 is the first day of the month. My formula works individually, but when I combine them, it doesn't work. Here's my formula:

    =SUMIFS(Transactions!J:J,Transactions!B:B,""<="(EOMONTH(E4,-1)+INT(DAY(EOMONTH(E4,0))/2)",Transactions!F:F,"<-="&A33)

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Sum one column based on two criteria

    hi coopman64. if you want a date range (1st Feb to 14th Feb for eg), you need 2 criteria range & criteria for it.
    1. >= 1 feb
    2. <= 14 feb

    unless your data only compromises of Feb data. then you can just use "<=" 14feb. in here, you seem to have an extra double quotes & without the ampersand after "<=".
    ""<="(EOMONTH(E4,-1)+INT(DAY(EOMONTH(E4,0))/2)"

    maybe something like this:
    =SUMIFS(Transactions!J:J,Transactions!B:B,">="&E4,Transactions!B:B,"<="&E4+INT(DAY(EOMONTH(E4,0))/2)-1,Transactions!F:F,A33)

    but i dont understand the last category portion too. if you still can't get it, upload a sample Excel file. that always helps

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    Mesquite, Texas, USA
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Sum one column based on two criteria

    Thank you, that was the problem.

+ 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