+ Reply to Thread
Results 1 to 6 of 6

Sumifs Formula not working correctly

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Sumifs Formula not working correctly

    Please Login or Register  to view this content.
    HelpPlz.xlsx

    Sheet1 represents the raw data that Sheet2 is meant to interpret with the SumIfs() function. I will eventually add another sheet like Sheet1 and the Sumifs sheet will add values from the two sheets together, which is why I'm doing this.

    The Sumifs function is meant to be flexible enoug to be dragged down and across effectively. Currently I don't understand why the incorrect values are popping up in my Sheet2 cells.

    I'd truly appreciate any help
    Last edited by jamaal09; 10-01-2013 at 09:01 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Sumifs Formula not working correctly

    If you unmerge your cells in column A in both sheets and then in Sheet1 file all the cells in column A with the correct name. Each record will have a name in column A, then your formula works.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,602

    Re: Sumifs Formula not working correctly

    It's because you are using merged cells (spawn of the Devil !!). Although it might look like Joe is in cells A2 to A6 on both sheets, Joe is only contained in cell A2, yet your formula will increment the row references when copied down and so it will look in A3, A4 etc. on successive rows, and these are empty.

    The best thing to do is to unmerge the cells on both sheets and then put the names in each individual cell.

    Hope this helps.

    Pete

  4. #4
    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: Sumifs Formula not working correctly

    Please see attached file
    Attached Files Attached Files
    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

  5. #5
    Registered User
    Join Date
    09-24-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Sumifs Formula not working correctly

    I would gladly unmerge the cells as it would be a lot easier for the VBA this file will come from, but formatting wise idk about the multiple cells. Is there a way to only have the first coulum entry in a2 then have the following cells blank until the next column A entry and still have this formula work somehow? Like maybe an if in there somewhere.

    Thanks you guys are allstars

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,602

    Re: Sumifs Formula not working correctly

    You can use conditional formatting to "hide" duplicated names (in cells A3 to A6) so your file will look very similar to what you have now. You do this by choosing the same foreground colour as the background (so the cell looks empty) if the condition is met, i.e. that A3=A2 in cell A3.

    Hope this helps.

    Pete

+ 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: 9
    Last Post: 03-08-2013, 11:50 AM
  2. Sumifs formula isn't working correctly
    By gjergji in forum Excel General
    Replies: 5
    Last Post: 09-20-2012, 05:15 PM
  3. [SOLVED] SUMIFS formula not working in VBA
    By meechie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2012, 03:06 PM
  4. Excel 2007 : SUMIFS Formula Not Working
    By milliemoo in forum Excel General
    Replies: 7
    Last Post: 03-06-2012, 12:16 PM
  5. Replies: 6
    Last Post: 09-21-2009, 02:26 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