# Countif - add another condition

1. ## Countif - add another condition

I have tried the Microsoft help but the formula simply doesn't work. Attached sheet is a smaller/simplified version of what I'm trying to do with a set of data.

I have a table of data showing all instances of each colour, then I want to break it down into each colour within each shape. i could filter and count but my actual data is 8 different shapes & 31 different colours [data types changed to make it simpler]

I'm very new to formulas more complicated than sum etc so all help appreciated in the simplest of terms please.

Thanks

2. ## Re: Countif - can't seem to add in another condition

You want to count the colours across all 3 columns? Try this formula in B17 copied across and down

=SUMPRODUCT((\$A\$2:\$A\$10=\$A17)*(\$B\$2:\$D\$10=B\$16))

Note that could count the same row twice, e.g. there are 4 yellow circles because it counts 2 in row 4

3. ## Re: Countif - add another condition

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

#### 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