+ Reply to Thread
Results 1 to 7 of 7

sumifs in column that needs to be identified

  1. #1
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    sumifs in column that needs to be identified

    Hi everyone,
    I have a large database, that basically looks similiar to the one I have in the example Excel.

    Staying with the example, I would like to create a sumifs-formula (or something else that works) that looks in the table for a specific column and runs a sumifs formula based on some other criteria.
    In the excel, for example, I would like to check country A for climate 1. In this column I want to get the sum of all age 2.

    Does anyone know how to do this?

    Thanks in advance!
    Attached Files Attached Files

  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,052

    Re: sumifs in column that needs to be identified

    Hi there. try this out:

    =SUMPRODUCT(($D$3:$L$3="A")*($D$4:$L$4=1)*($B$5:$B$10=2)*$D$5:$L$10)
    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
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: sumifs in column that needs to be identified

    Hi Glenn, thanks a lot, that works perfectly!
    Is there a way to use this as a count formula as well? I.e. Excel counts, e.g. all cells that are greater than 0?

  4. #4
    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,052

    Re: sumifs in column that needs to be identified

    Yes... try this:

    =SUMPRODUCT(($D$3:$L$3="A")*($D$4:$L$4=1)*($B$5:$B$10=2))

  5. #5
    Forum Contributor
    Join Date
    06-24-2009
    Location
    Germany, MG
    MS-Off Ver
    Excel 2010
    Posts
    131

    Re: sumifs in column that needs to be identified

    I think I get it. But doesn't this formula just count the cells that fulfill the criteria?
    Can I add an explicit assumption that the formula should count only values above 0?

  6. #6
    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,052

    Re: sumifs in column that needs to be identified

    Oops missed that bit.... Im in the middle of a 5 mile walk. Look back a bit later. ..

  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,052

    Re: sumifs in column that needs to be identified

    OK. here you go...

    =SUMPRODUCT(($D$3:$L$3="A")*($D$4:$L$4=1)*($B$5:$B$10=2)*($D$5:$L$10>0))

+ 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. Take rows of text and move to into a new column, each column easily identified
    By CATTX01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2015, 03:35 PM
  2. Returning column title when first value identified
    By Mackay2m in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-16-2015, 03:29 AM
  3. Replies: 1
    Last Post: 01-30-2013, 08:30 AM
  4. [SOLVED] Excel VBA code that creates hyperlinks to external docs identified by the info in column A
    By crnadeau4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-21-2013, 06:52 PM
  5. [SOLVED] How, in a column of numbers, all relative minimum can be identified?
    By manmehdiam in forum Excel General
    Replies: 3
    Last Post: 09-03-2012, 02:19 PM
  6. SumIfs in only one column
    By Scher215 in forum Excel General
    Replies: 7
    Last Post: 12-29-2010, 09:18 AM
  7. Replies: 3
    Last Post: 11-27-2008, 10:06 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