+ Reply to Thread
Results 1 to 5 of 5

Formula to add sums of cells based on date.

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    12.3.6
    Posts
    6

    Formula to add sums of cells based on date.

    Hello everyone, I'm kind of new to Excel, and I have a kind of complicated task I wanted to complete. I'm not really sure if it's reasonably possible to do. But if you have an answer I would greatly appreciate it!

    I have attached my excel file with my question for you. Basically, I want to add up the sum of the cells from column B in column C, based on which month column A is.
    So each time there is a new day, next to that day in column C I want to add up the total sum of the value of the cells in column B for that same day.

    It sounds confusing but hopefully the attachment will make it seem less confusing.excel example.xlsx


    Thanks!

    EDIT: I actually found a solution to the problem I was working on. I still don't know the answer to the question above, but I kind of worked around it. If you still want to answer my question, I would still be curious to know what the answer is, thanks.
    Last edited by bmende; 06-23-2015 at 03:22 PM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How do I do this formula?

    Enter this formula in C2 and copy down.


    =IF(COUNTIF(A$2:A2,A2)=1,SUMPRODUCT((MONTH($A$2:$A$17)=MONTH(A2))*(DAY($A$2:$A$17)=DAY(A2))*($B$2:$B$17)),"")

    Or if you need for one particular month use this

    =IF(COUNTIF(A$2:A2,A2)=1,SUMPRODUCT((DAY(A$2:A$17)=DAY(A2))*(B$2:B$17)),"")
    Last edited by AlKey; 06-19-2015 at 08:39 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: How do I do this formula?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  4. #4
    Registered User
    Join Date
    04-08-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    12.3.6
    Posts
    6

    Re: How do I do this formula?

    @ AlKey Thank you!!

  5. #5
    Registered User
    Join Date
    04-08-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    12.3.6
    Posts
    6

    Re: How do I do this formula?

    @zbor I apologize, I edited the title thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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