+ Reply to Thread
Results 1 to 8 of 8

SUMIFS issues

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    SUMIFS issues

    Hi all, I'm struggling to get a SUMIFS formula to work, it's been a little while since I've used these so I'm sure I've missed something obvious

    I've attached a workbook showing what I'm trying achieve, can someone explain to me where I'm going wrong please?

    The jist basically is I want to add the range per set by either day or night (as indicated in one of the columns), but it won't come back with an answer - I'm guessing my ranges are incorrect?

    Any help would be greatly appreciated.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: SUMIFS issues

    Indeed problem with ranges as wit one unneeded condition. So SUMIF would also do :-) but with SUMIFS in B3:
    Formula: copy to clipboard
    =SUMIFS(data!B$2:B$1057,data!$L$2:$L$1057,"d")
    and copy to right.
    similar (but with "n") a row below

    PS. You could use also whole columns reference
    Formula: copy to clipboard
    =SUMIFS(data!B:B,data!$L:$L,"d")


    Note absence of dolar sign before B and presence before L (this way B will change when copied right and L will not).
    Last edited by Kaper; 04-22-2020 at 06:03 AM.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: SUMIFS issues

    This works really well with the example that I attached, thanks very much

    If I transpose the data headers, the formula still works but I have to manually change the cell reference, is there a way of encompassing this into the formula to future proof it?

    thanks again
    Attached Files Attached Files
    Last edited by Weaselwithagun; 04-23-2020 at 07:10 AM. Reason: Now with example!

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: SUMIFS issues

    I'd use probably sumproduct in this case.
    For instance B2 in Formula sheet:
    Formula: copy to clipboard
    =SUMPRODUCT(data!$B$2:$K$1057,(data!$L$2:$L$1057=B$1)*(data!$B$1:$K$1=$A2))
    and copy down and right
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: SUMIFS issues

    Would it be possible, using the above SUMPRODUCT formula to add additional variables like in this attachment?

    So instead of it just saying D or N as variables, also choosing month?
    Attached Files Attached Files

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: SUMIFS issues

    Sure, use:
    Formula: copy to clipboard
    =SUMPRODUCT(data!$B$2:$K$1057,(data!$L$2:$L$1057=B$2)*(data!$B$1:$K$1=$A3)*(data!$M$2:$M$1057=B$1))
    can be copied directly to column D (and if necessary F, H, etc.), but in column C (and copied to E, etc.) slight change (as your row 1 contains merged cels) is required:
    Formula: copy to clipboard
    =SUMPRODUCT(data!$B$2:$K$1057,(data!$L$2:$L$1057=C$2)*(data!$B$1:$K$1=$A3)*(data!$M$2:$M$1057=B$1))

  7. #7
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Re: SUMIFS issues

    I've had a go at transposing this into a bigger version of the same thing, but it's bringing back the VALUE answer

    in my latest effort, instead of just saying D or N, it has Green Amber and red (setup in the same fashion), like in this attached example - could you explain where i'm going wrong please?

    ***PLEASE IGNORE THE ABOVE, I'M AN IDIOT AND COPIED IT ACROSS INCORRECTLY***
    Attached Files Attached Files
    Last edited by Weaselwithagun; 04-27-2020 at 10:55 AM.

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: SUMIFS issues

    Please try at B3

    =SUMIFS(INDEX(data!$B$2:$K$1057,,MATCH($A3,data!$B$1:$K$1,)),data!$L$2:$L$1057,B$2,data!$M$2:$M$1057,LOOKUP("z",$B$1:B$1))
    Attached Files Attached Files

+ 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. [SOLVED] Sumifs and sumproduct sumrange issues
    By stuart010 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-29-2016, 06:07 PM
  2. Issues with INDIRECT and SUMIFS
    By dchubbock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2015, 09:25 AM
  3. [SOLVED] Advice needed - SUMIFS/SUMPRODUCT Issues
    By mo4391 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2015, 02:35 PM
  4. [SOLVED] SUMIFS Issues
    By wat in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-15-2015, 03:26 PM
  5. Does SUMIFS have issues with merged cells or across multiple sheets??
    By dumaser88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2014, 01:04 PM
  6. Replies: 10
    Last Post: 12-14-2012, 01:06 PM
  7. SUMIFS formula with date format issues
    By swanseaexcel in forum Excel General
    Replies: 4
    Last Post: 04-18-2011, 05:25 AM

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