+ Reply to Thread
Results 1 to 16 of 16

Excel 2007 : Help with SUMIF please!!

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Help with SUMIF please!!

    Hi everyone,

    Im in major need of some help please. I am simply trying to sum the counts of bat calls that fall on a particular date. The mother data set contains three separate species. I am wanting to lump Molossid and Vesper counts and seperate Miniop counts, but total each group for a particular date.

    Please attached spreadsheet. The group of data on the right is working perfectly with the forumla I have put in, its giving me exactly what I want and lumping Molossid and Vesper counts per date. The Miniop set of data on the left though is not working for some reason. I have applied the same formula to the same set of data in the same format but its not working.

    Can anyone help me to get this to work please?

    Help.xlsx

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with SUMIF please!!

    Ηι. Welcome to the forum.

    Maybe try to "lock" the ranges....

    =SUMIF($A$1:$A$54,"="&D1,$C$1:$C$54)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Hi Fotis!

    Thanks for the welcome Thanks also for your help, I tried your suggestion but it doesn't seem to have fixed the problem. Also the forumula used on the data set on the right did not need locked ranges. I'd appreciate any other suggestions though.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Help with SUMIF please!!

    You could just use whole column:

    =SUMIF(A:A,D1,C:C) (notice you don't need the "="&)

  5. #5
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Hey cutter, thanks for your reply. Now this is weird. I applied your change to the right set of data and sure enough the values remained the same and it worked fine, so yes I didn't need to use the "="& bit. But when I tried to apply the change to the left hand set of data, it didn't work. It gives the correct answer for the first date and then just 0's after that. Any ideas?

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with SUMIF please!!

    I angree with Cutter, that you don't need the &= signs...

    But even Cutter's, even mine gives you results. Not 0 !!
    Attached Files Attached Files

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Help with SUMIF please!!

    I am seeing various results in column E as well.
    What formula do you have in E1 and did you drag it all the way down to E160?
    If you put =SUM(C:C) in some unused cell and =SUM(E:E) in another they should both equal 64

  8. #8
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Guys thanks for your help I appreciate it. I really dont know whats going on, Im wondering if its a formatting issue? Cutter the formula in E1 in my spreadsheet is =SUMIF(A1:A54,"="&D1,C1:C54) and yes I dragged it all the way down to E160.

    I tried doing =SUM(C:C) and got 64, but got a value of 1 for =SUM(E:E) (i.e. summing from E1:E160) in the spreadsheet I attached. I tried SUM(E:E) in the spreadsheet Fotis attached, which apprears to be working, and got a value of 38.

    Any ideas?

  9. #9
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Maybe I should add that Im using the filter option from the "sort and filter" button to highlight all data by name. So selecting all data for Miniop for example in the main data set. Then copying and pasting these data into a new worksheet, just straight paste not special paste. Then doing the same thing for Vesper and Molossid data. Just wondering if the filter option is messing up cell counts or something?

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with SUMIF please!!

    AS you said "appears to working"


    Did not worked, because i had not drag down and did not locked it, corectly.

    Corect result is 64
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Hi Fotis, it appears to be working for you no problem. I applied the same formula on the spreadsheet you just attached, please see column "P" in the attached spreadsheet. Its giving me zeros! I didnt do anything other than apply the formula, drag it down an save the worksheet. Im sure its correct but can you check the formula please.

    0Help (2)(1)a.xlsx

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with SUMIF please!!

    It's because, you don't LOCK your formula

    Your formula in P1, is this.

    =SUMIF($A1:$A54,D1,$C1:$C54)

    You need to do this.

    =SUMIF($A$1:$A$54,D1,$C$1:$C$54)

  13. #13
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Help with SUMIF please!!

    Or just use the whole column formula like I suggested in post #4 if your ranges will be growing.

  14. #14
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Haha, it works! Thank you Fotis, you have really helped me out here!! I needed to open my eyes more and "see" what you were telling me Thanks again for your time!

  15. #15
    Registered User
    Join Date
    05-11-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: Help with SUMIF please!!

    Thanks also Cutter for your help, much appreciated. Yes the column approach does seem to work too.

  16. #16
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Help with SUMIF please!!

    Again my poor English....

    You are welcome.

    OF course, Cutter's formula, works too.

    @ Cutter.

    I had include your suggestion to my attachments.

+ 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