+ Reply to Thread
Results 1 to 7 of 7

SUMIF Help

Hybrid View

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    13

    SUMIF Help

    I'm trying to create a formula, I think using the SUMIF funtion, but can't seem to get it correct. Have a look at the excel spreadsheet attached to see the issue.

    Any help would be great, thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMIF Help

    Use either of the two

    =SUMPRODUCT((C9:V9=B6)*C11:V13)
    OR
    =SUM(IF(C9:V9=B6,C11:V13)) ...array formula -- confirm with Ctrl+Shift+Enter not just Enter

    Also, change forumla in Row 9 to =(MONTH(C10)&"."&YEAR(C10))*1 to ensure it is in numeric form
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIF Help

    Hi,

    If you put the date 1/1/2012 in say B7 then

    =SUMPRODUCT((C10:V10>=B7)*(C10:V10<=EOMONTH(B7,0))*C11:V13)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    07-31-2012
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: SUMIF Help

    Thanks everyone!

    ---------- Post added at 07:04 PM ---------- Previous post was at 04:00 PM ----------

    After using these sum and sum related formulas (see above) within my workbook, I'm noticing that they have begun to take a great deal of time to calculate and makes the use of the workbook much slower. I basically have around 30 tabs full of data, probably over 20,000 cells filled with data in each tab. I've tried using all the formulas above to slice the data but it seems these formulas may be too CPU intensive.

    Does anybody have a more elegant method to solve my problem above without using a formula that will ultimately bog down the workbook so much?

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIF Help

    If you are able to change the format of the data, you can use pivot table.

    See the example.

    And for the change of format see the link below.

    http://www.excelforum.com/excel-prog...ose-macro.html
    Attached Files Attached Files
    Last edited by oeldere; 08-05-2012 at 09:24 PM. Reason: And for the change of format see the link below.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    07-31-2012
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: SUMIF Help

    Quote Originally Posted by oeldere View Post
    If you are able to change the format of the data, you can use pivot table.

    See the example.

    And for the change of format see the link below.

    http://www.excelforum.com/excel-prog...ose-macro.html
    Thanks, but because I have multiple tabs (over 20) that I'll be pulling data from, and then combining it all into one output tab, I don't think the pivot table will work in this instance

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIF Help

    And how you get the data in that one output tab?

    You work with sumif?

    Mayby you better use VBA to collect the data in a masters sheet (output tab).

    And after that use a pivot table.

    I can't help you enough with VBA.

+ 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