+ Reply to Thread
Results 1 to 4 of 4

Sumif, sumifs, counta, countifs??

  1. #1
    Registered User
    Join Date
    06-12-2009
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    68

    Sumif, sumifs, counta, countifs??

    I have the following table:

    COL A COL B
    Blue 5
    Red 3
    Yellow 2
    Green 1
    Yellow 1
    Red 4
    Yellow
    Blue 6
    Purple 3

    I need to count the number of times COL B has a number or data in it (any number it doesn't matter) if COL A has the word Yellow next to it. So in my example above, Yellow would result in 2, Purple 1, Blue 2, etc. I cant work out how to do this, i think it needs some sort of nested SUMIF, COUNTA formula but cant work out what?

    Many Thanks
    Last edited by 1.zer0; 01-14-2012 at 06:17 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Sumif, sumifs, counta, countifs??

    Hi

    In C1 copied down

    =COUNTIFS($B$1:$B$9,">0",$A$1:$A$9,A1)

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-28-2011
    Location
    India
    MS-Off Ver
    2003, 2007 and 2010
    Posts
    34

    Re: Sumif, sumifs, counta, countifs??

    Hi,

    Please find attached workbook which has the formula for you, I have used array formula so in order to workout that formula you have to hit CTRL+SHIFT+ENTER after you typed the formula or if you edit anything in the formula.

    Thanks,
    Attached Files Attached Files
    Hari
    "Trying to find excel boundaries"

  4. #4
    Registered User
    Join Date
    06-12-2009
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Sumif, sumifs, counta, countifs??

    Thanks for the help, I tried richards first and it works fine. I think i was a victim of over thinking the problem!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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