+ Reply to Thread
Results 1 to 24 of 24

SUMIF exclude some rows

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    SUMIF exclude some rows

    Hi,

    I have a big sheet, in which I have this formula: =SUMIF(A:A,"OB18",B:B) but I would like it to exclude some rows, depending on what stands in column C:C. So if in a row in column C it's "=$P$13" then exclude it from the SUMIF or subtract it somehow?

    Can somebody help please?

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: SUMIF exclude some rows

    =sumifs(b:b,a:a,"ob18",c:c,"<>"&$p$13)

  3. #3
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    Hi, thanks but it doesn't seem to solve my problem.. so in cell C15 I have this: =$P$13 and I would like the SUMIF to exclude this row because its =$P$13
    Last edited by LIL2606; 09-01-2017 at 01:34 PM.

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: SUMIF exclude some rows

    2. =sumproduct(b:b,(a:a="ob18"+c:c<>$p$13))

  5. #5
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    #VALUE error

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

    Re: SUMIF exclude some rows

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    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.

  7. #7
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    Hi attached a little sheet, so I would like to Sum the "Blueberries" and make sure that the ones (last row in the example) that are turned on by the "additional" field are excluded.

    Help please!
    Attached Files Attached Files

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: SUMIF exclude some rows

    May be something like

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  9. #9
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    I need to add some of the blueberries even if there are 0 standing beside them.. it would need to exclude the lines in which in column C it's $L$8 but this =SUMIFS(B5:B12,A5:A12,"Blueberry",C5:C12,"<>$L$8") gives the wrong value.

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

    Re: SUMIF exclude some rows

    with a pivot table.

  11. #11
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    Hi, thanks for trying, this does work but I have no possibility to add the extra column in. The sheet I'm working in is over 650 rows and over 40 columns... the calculation I'm trying to add in is also just a temporary feature, I just tried to give a simple example.. So I really would need a formula to write into a cell to give me the expected value..

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

    Re: SUMIF exclude some rows

    but I have no possibility to add the extra column in.
    I guess you can use column 41 for that.

    Howw often do you need to analyse the data?

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

    Re: SUMIF exclude some rows

    =SUMIFS(B5:B12,B5:B12,"<0",A5:A12,"Blueberry")

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,396

    Re: SUMIF exclude some rows

    Maybe this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  15. #15
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: SUMIF exclude some rows

    Or Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  16. #16
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    this will only work if my numbers are smaller than 0 which isn't always the case :/ but thanks!

  17. #17
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    This works! Lovely.. but I don't understand how.. could you please elaborate? So the second criteria is if there is "Blueberry" in the A column.. but the first criteria "<"&L8 means what??

  18. #18
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    This works as well, I also don't know how, can you please explain?

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

    Re: SUMIF exclude some rows

    Can you also add to the reply to whom you are replying, since that is not clear (at least not for me).

  20. #20
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    @oeldere Hi, sorry I thought if I just press reply under the comment it will automatically mean I replied to that particular one. "this will only work if my numbers are smaller than 0 which isn't always the case :/ but thanks!"

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

    Re: SUMIF exclude some rows

    @LIL2606

    In your example it is, why not make an example that fits your need.

  22. #22
    Forum Contributor
    Join Date
    08-29-2017
    Location
    London England
    MS-Off Ver
    2016
    Posts
    194

    Re: SUMIF exclude some rows

    @Oeldere

    You are right. My mistake! I'm sorry! Thank you for helping, I do appreciate it!!

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

    Re: SUMIF exclude some rows

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  24. #24
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,396

    Re: SUMIF exclude some rows

    Quote Originally Posted by LIL2606 View Post
    This works! Lovely.. but I don't understand how.. could you please elaborate? So the second criteria is if there is "Blueberry" in the A column.. but the first criteria "<"&L8 means what??
    "<"&L8 means less than what is in L8. In the example it happens to be 0. If value of L8 changes then criteria is less than what ever the new number is.

    Does that help?

+ 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. SUMIF and Exclude Duplicates
    By hthoma11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2016, 12:11 AM
  2. SUMIF with wildcard, need to exclude a criteria
    By dhabersaat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-21-2014, 08:44 PM
  3. Exclude Specific Colored Rows in a SUMIF Function
    By tshives26 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 07-18-2014, 11:27 AM
  4. Exclude Specific Colored Rows in a SUMIF Function
    By tshives26 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-16-2014, 02:01 PM
  5. [SOLVED] Exclude date from sumif
    By dogster in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-31-2012, 02:15 AM
  6. Sumif (?) to exclude colored text
    By slinkymaster in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 08:54 AM
  7. Using SUMIF to count certain criteria but exclude others
    By Dan27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2011, 07:39 AM

Tags for this Thread

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