# Using Sumifs (Or other Total Functions)

1. ## Using Sumifs (Or other Total Functions)

Good Morning,

I am trying to solve the problem I am having for my weekly report. Currently our Reporting has to be done Via Excel, with no reporting consule to have dynamic ability. I am trying to put a formula table together so all my manager has to do is dump raw data and the calculations take care of the totals for the table. I am running into the issue of when trying to return certain data at a certain date. So here is what I have and what I need (If it can be done without changing the formula each week)

For the MTD calculation I have:

=SUMIFS('Raw2'!\$L\$2:\$L\$902317,'Raw2'!\$O\$2:\$O\$902317,"=2013",'Raw2'!\$M\$2:\$M\$902317,"=11",'Raw2'!\$N\$2:\$N\$902317,">=1",'Raw2'!\$N\$2:\$N\$902317,"<=31",'Raw2'!\$B\$2:\$B\$902317,"=0000013")

The raw data wont have information past the current day of the month so the <=31 allows for the current month to calculate correctly.

Where I am having trouble is the Previous Month Formula:

=SUMIFS('Raw2'!\$L\$2:\$L\$902317,'Raw2'!\$O\$2:\$O\$902317,"=2013",'Raw2'!\$M\$2:\$M\$902317,"=10",'Raw2'!\$N\$2:\$N\$902317,">=1",'Raw2'!\$N\$2:\$N\$902317,"<=24",'Raw2'!\$B\$2:\$B\$902317,"=0000013")

This returns the data, but I have to change the "<=24" every week to the date that I want up to. I have tried =eomonth(today(),-2+1) but that is not allowed as the Criteria.

Any help would be awesome! I am also open to questions to help clarify anything.

3. ## Re: Using Sumifs (Or other Total Functions)

Looks like it worked. I am going to replace the 24 with this formula. Does this also work for the month? So the "=10" can be replaced the month so I do not have to reset the formula sheet each month?

4. ## Re: Using Sumifs (Or other Total Functions)

Yes, that should do the same thing, or for previous month =MONTH(TODAY())-1

5. ## Re: Using Sumifs (Or other Total Functions)

That worked thanks!

6. ## Re: Using Sumifs (Or other Total Functions)

Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

In future, to mark your thread as Solved, you can do the following -

Incase your issue is not solved, you can undo it as follows -

Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.

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