+ Reply to Thread
Results 1 to 19 of 19

Multiple SUMIFS based on criteria but ignores if a cell is blank..

  1. #1
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Hi All,

    Sorry if the subject is a big vague but thought I would put all the required information in the description, Hope there are some clever heads out there who can assist me

    I have a SUMIFS:

    =SUMIFS('Working Copy'!AK:AK,'Working Copy'!W:W,'Summary Filter'!F6,'Working Copy'!F:F,">"&C6,'Working Copy'!Z:Z,'Summary Filter'!C4)

    Basically it looks at the Raw data called working copy and pulls through revenues based on a supplier but also looks at the input based on a few other cells.

    What I need is to wrap an IF around the SUMIFS to look at these criteria but I need it to look at two main cells if one is blank the look at the other and vice versa, also if both cells are blank then display results without this criteria like also if there are data in both then ignore again.

    Hope this makes sense? I have attached an image of the spread sheet which may makes things more clearer. Let me know if there is anything else which you need from me.

    Many thanks,

    Andrew
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Please attach the spreadsheet, not an image. At least on my PC - the image isn't visible.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Please see attached document. The cells in Orange are the ones in question.

    Thanks,

    Andrew
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Without opening your Zip file...sounds like you are stating the following.

    Check if Cell 1 is empty,
    1TRUE= Check if Cell 2 is BLANK or Empty,
    2TRUE= If it is also than result is BLANK
    2FALSE= If Cell 2 is NOT BLANK where Cell 1 is BLANK then process formula based on cell 2
    1FALSE=if 1 is NOT BLANK, check again to see if Cell 2 is BLANK
    3TRUE=if CELL 2 is than your formula based on Cell 1 not BLANK and While cell 2 is BLANK
    3False=Otherwise neither are blank so process formula based on both NOT BLANK
    =IF(OR(CELL 1="",CELL 1=0),IF(OR(CELL 2="",CELL 2=0),"", YOUR FORMULA WITH CELL 2 not blank),IF(OR(CELL 2="",CELL 2=0),FORMULA When CELL 1 IS NOT BLANK but CELL 2 IS),Formula when Neither cell is blank)
    -If you think you are done, Start over - ELeGault

  5. #5
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Thanks for the response, appreciate the formula you put in. Having a little trouble incorporating it directly in my current SUMIFS though.. I am not the most advanced Excel user and doing this SUMIFS was quite big for me so sorry for sounding quite amateur

  6. #6
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Always glad to help - Paste this below "Andrew" in CELL F7

    =IF(OR($C$4=0,$C$4=""),IF(OR($C$6=0,$C$6=""),"",SUMIFS('Working Copy'!$AK:$AK,'Working Copy'!$W:$W,F$6,'Working Copy'!$F:$F,">"&$C$6)),IF(OR($C$6=0,$C$6=""),SUMIFS('Working Copy'!$AK:$AK,'Working Copy'!$W:$W,F$6,'Working Copy'!$Z:$Z,$C$4),SUMIFS('Working Copy'!$AK:$AK,'Working Copy'!$W:$W,F$6,'Working Copy'!$F:$F,">"&$C$6,'Working Copy'!$Z:$Z,$C$4)))

    Then copy paste the cell over under Butler.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    A small amendment to ElEGault's solution (to take account of the situation when BOTH C4 & c6 are empty). The formula can be dragged over to the right as far as is needed to cope with all your suppliers/staff - whatever they are..
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    When both were blank I left blank (thought that was the desired outcome, but right on, hope that closes it out then!

    Thanks Bed time... 6 AM...

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    There's dedication for you... 6 a.m. and posting away furiously. Welcome to the forum...

  10. #10
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    I will give this a whirl, looks good to me! Appreciate both of your work on this, really will help me If ok will keep this thread open for a little bit just whilst I put the real data back in and make sure I don't mess it up somehow!

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    OK. No problem. I'll be here (off and on) for a few more hours today. Fruit canes to clip back for a while now...

  12. #12
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    There is one more permutation which I need to add in but now the formula is very long (as long as it works though it is all cool) I have added a new column at the end which is a Y or N, where the cell shows Y, I need to exclude that value in the overall total.

    How can I add in this to the formula?

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Im on a plane! I'll be back in about two hours.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Can you post the sheet, complete with the additional column?

  15. #15
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Please see attached, I have highlighted the Y or N in the raw data, so where it is Y I need the revenue excluded
    Attached Files Attached Files

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    You caused a bit of confusion there. You attached a version of your sheet that didn't have the last version of the formulas. It's fixed now. Take a look and let me know....
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Hope you had a safe journey by the way

  18. #18
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Yep. Soon to be the sad "table for one, please" in central London... Beer time first, though.

  19. #19
    Registered User
    Join Date
    11-22-2014
    Location
    Aylesbury
    MS-Off Ver
    MS Office 2013
    Posts
    14

    Re: Multiple SUMIFS based on criteria but ignores if a cell is blank..

    Enjoy! And thanks alot for all the help, really appreciate it, worked like a dream

+ 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: 5
    Last Post: 07-02-2017, 10:25 AM
  2. [SOLVED] Nested IF and SUMIFS - Multiple criteria based on an IF
    By wjmoore in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-16-2014, 10:40 PM
  3. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  4. Replies: 2
    Last Post: 07-11-2012, 08:58 AM
  5. Replies: 5
    Last Post: 09-07-2011, 11:14 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