+ Reply to Thread
Results 1 to 5 of 5

Sum on Criteria in Two Columns

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Sum on Criteria in Two Columns

    I wish to add values in a column if they fall within a numerical range in one column and if they match a text criteria in another column. I also wish to count cells which meet a numerical range criteria in one column and a text criteria from another column. See example

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sum on Criteria in Two Columns

    Try
    =SUMIFS($B$2:$B$15,$B$2:$B$15,">=0",$B$2:$B$15,"<=999",$A$2:$A$15,$D23)
    and
    =COUNTIFS($B$2:$B$15,">=0",$B$2:$B$15,"<=999",$A$2:$A$15,$D23)

    Just change the 0 and 999 to 1000 and 4999 for each section.

    And for the 10000+ remove the <= criteria

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Sum on Criteria in Two Columns

    Hi
    Use in E21, G21, I21, K21, M21 the values 0, 999, 4999, 9999, 9E99
    In F23 use
    =SUMPRODUCT(--($A$2:$A$15=$D23)*($B$2:$B$15>E$21)*($B$2:$B$15<=G$21)*$B$2:$B$15)
    In G23 use
    =SUMPRODUCT(--($A$2:$A$15=$D23)*($B$2:$B$15>E$21)*($B$2:$B$15<=G$21))
    format as you witch
    select F23 and G23 and copy down and forward.

  4. #4
    Registered User
    Join Date
    04-23-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    58

    Re: Sum on Criteria in Two Columns

    Thank you kindly, Jonmo and Jose. This was very helpful and seems to be working fine in my spreadsheet.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sum on Criteria in Two Columns

    You're welcome.

+ 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] I need to fill 2 text columns based on criteria from 2 adjacent columns
    By JohnnyBoyxxx in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-04-2014, 02:55 PM
  2. Replies: 1
    Last Post: 09-03-2013, 07:41 PM
  3. [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
  4. Need one column total if criteria meets another columns criteria
    By jebrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 08:47 PM
  5. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  6. Macro for summation of few(4) columns based on selection criteria of two columns
    By nitz00757 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2012, 04:22 AM
  7. Replies: 2
    Last Post: 10-05-2011, 12:43 PM

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