+ Reply to Thread
Results 1 to 5 of 5

Formula required for SUMIFS with two criteria over multiple columns and rows

  1. #1
    Registered User
    Join Date
    06-14-2017
    Location
    Sydney, Australia
    MS-Off Ver
    Windows 2010 (I think!)
    Posts
    3

    Formula required for SUMIFS with two criteria over multiple columns and rows

    Hi there,

    Can you please help? Tried a number of solutions already on this site and others but haven't been able to fix it myself yet. Screenshots below, but example sheet attached!

    http://i.imgur.com/gyYo3xi.png this shows how my data looks when it is downloaded (notice how it only shows the dates that have happened so far, plus a total column). The total column isn't necessary for this task, and if there is no data for a particular date then that date wont show.

    http://i.imgur.com/sEUED8e.png this shows a formula I have added in column A to combine the data in column C and column D (the download doesn't always show what column D is for, so my formula in column A also corrects this).

    http://i.imgur.com/85OCS44.png this is the format I need and where the formulas will go to pull out the relevant data. For example, cell C3 should result 4 as that is the sum for the number of patients admitted as "DPU - Day Only Patients" on the 1/06/17. I would then need to copy this formula across to cover all dates and down to capture all wards. If there is no data then it should show a 0 (like an ordinary SUMIF formula).

    Thanks in advance for any help.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula required for SUMIFS with two criteria over multiple columns and rows

    C3=SUMIFS(INDEX('DATA DOWNLOAD'!$F$7:$S$233,,MATCH(C$2,'DATA DOWNLOAD'!$F$3:$S$3,0)),'DATA DOWNLOAD'!$A$7:$A$233,$A$3)
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    06-14-2017
    Location
    Sydney, Australia
    MS-Off Ver
    Windows 2010 (I think!)
    Posts
    3

    Re: Formula required for SUMIFS with two criteria over multiple columns and rows

    Worked great, thanks! I made a couple adjustments (see below) just to extend it to cover additional rows and columns for future dates and removed on of the $ in the last reference so it could be copied across. Thanks for your help, nflsales!

    =IFERROR(SUMIFS(INDEX('DATA DOWNLOAD'!$F$7:$S$999,,MATCH(C$2,'DATA DOWNLOAD'!$F$3:$BA$3,0)),'DATA DOWNLOAD'!$A$7:$A$999,$A3),0)

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula required for SUMIFS with two criteria over multiple columns and rows

    Quote Originally Posted by TallAussie View Post
    Worked great, thanks! I made a couple adjustments (see below) just to extend it to cover additional rows and columns for future dates and removed on of the $ in the last reference so it could be copied across. Thanks for your help, nflsales!

    =IFERROR(SUMIFS(INDEX('DATA DOWNLOAD'!$F$7:$S$999,,MATCH(C$2,'DATA DOWNLOAD'!$F$3:$BA$3,0)),'DATA DOWNLOAD'!$A$7:$A$999,$A3),0)
    you need to change 'DATA DOWNLOAD'!$F$7:$S$999 also as 'DATA DOWNLOAD'!$F$7:$BA$999

  5. #5
    Registered User
    Join Date
    06-14-2017
    Location
    Sydney, Australia
    MS-Off Ver
    Windows 2010 (I think!)
    Posts
    3

    Re: Formula required for SUMIFS with two criteria over multiple columns and rows

    Quote Originally Posted by nflsales View Post
    you need to change 'DATA DOWNLOAD'!$F$7:$S$999 also as 'DATA DOWNLOAD'!$F$7:$BA$999
    Sorry, not 100% what you mean. How should the formula read?

+ 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 with 3 Criteria Mixed with Rows and Columns
    By mbshafe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2016, 12:07 PM
  2. Replies: 3
    Last Post: 12-09-2015, 03:10 AM
  3. SUMIFS or SUMPRODUCT with Multiple Columns and with Date Criteria
    By eac8423 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2014, 05:20 PM
  4. Need help understanding sumifs columns with multiple criteria
    By igoodable in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2014, 02:27 PM
  5. [SOLVED] SUMIF or SUMIFS adding time where criteria is in multiple columns
    By 66ev in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-14-2013, 02:21 PM
  6. Replies: 6
    Last Post: 03-02-2012, 02:47 AM
  7. Replies: 2
    Last Post: 11-06-2011, 06:46 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