+ Reply to Thread
Results 1 to 3 of 3

sum multiple columns based on 3 criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    12-16-2008
    Location
    Blackpool, UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    54

    sum multiple columns based on 3 criteria

    Good afternoon everyone, I would like some help with a formula which will sum all columns falling under the following criteria.
    In the PI% tab Rows 1 to 5 are labelled Quarter, Month, Col, Week and WC.
    In the Monthly Totals Tab I need to lookup the name in Column A then sum all entries in the rows headed with col 3 and month 2
    As you can see I have the Month number and the Col number referenced in cells C2 and C3 in the Monthly Totals Tab.
    I have managed to do the weekly Totals tab with an index match formula but this only finds the first instance of the criteria being met.

    {=INDEX('PI%'!$Y$10:$AFX$73,MATCH($A10,'PI%'!$A$10:$A$73,0),MATCH($C$1&$C$2,'PI%'!$Y$2:$AFX$2&'PI%'!$Y$3:$AFX$3,0))}

    Any help pointing me in the right direction with this problem would be greatly appreciated as I have been stuck now for a while.
    Attached Files Attached Files

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

    Re: sum multiple columns based on 3 criteria

    this?
    =SUM(INDEX('PI%'!$Y$10:$AFX$73,MATCH($A10,'PI%'!$A$10:$A$73,),)*($C$1='PI%'!$Y$2:$AFX$2)*ISNUMBER(MATCH('PI%'!$Y$3:$AFX$3,$C$2:$G$2,)))

  3. #3
    Registered User
    Join Date
    12-16-2008
    Location
    Blackpool, UK
    MS-Off Ver
    2003, 2007, 2010
    Posts
    54

    Re: sum multiple columns based on 3 criteria

    Thanks tim201110, this works great for me.

+ 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. Sum multiple columns, each column based on criteria from different columns
    By windrain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2017, 08:24 PM
  2. Average numbers from multiple columns based on multiple criteria
    By abambi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2015, 01:52 PM
  3. Add Multiple Columns based on same criteria found in multiple columns
    By KathyBNelson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-29-2014, 04:42 PM
  4. Populating fields in multiple cells based on criteria in multiple columns
    By excelalways in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2014, 08:17 AM
  5. formulas for search based on multiple criteria in multiple columns
    By oneworld in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 06:57 AM
  6. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  7. Macro to Segregate the data based on Multiple Criteria's in Multiple Columns -Challenging!
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2012, 07:31 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