CountIf for multiple values on the same row

JasonTruman

Board Regular
Joined
Sep 30, 2003
Messages
81
Hi all

Anyone help (keeping it simple)

If I have a list of years in column A say lots of 2006, 2007 and 2008, then in column B, text, such as Backlog, No Backlog, is there a way using Countif to say how many are 2007 AND Backlog. I can do it using an IF combined AND in column C first to get a Yes and then count those up, but is there a way without having to do loads of calcs

Unless Countif isn't the way to go and there is another solution

Cheers
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
=SUMPRODUCT((A1:A1000=2007)*(B1:B1000="Backlog"))

The bolded parts can be replaced with cell references containing the respective values.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,970
Messages
5,599,108
Members
414,288
Latest member
horizon2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top