Excel 2007 Formula

petes

Board Regular
Joined
Sep 12, 2009
Messages
164
I have data in 2 columns (A & B)

Column A has numbers in Range A1 to A21 (Numbers from 1 to 20, Excluding heading).
Column B can have 4 values (Open,Closed,Hold,Progress) and is updated in Range B1 to B21 (Excluding Heading)

I am looking for a formula that retrives the Total COUNT of:

Less than 10 from column A and corresponding OPEN and CLOSED from column B

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,273
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Hi Petes
Are you using 2007
Code:
=COUNTIFS(B2:B21,"closed",A2:A21,"<10")
=COUNTIFS(B2:B21,"open",A2:A21,"<10")

2003
Code:
=SUMPRODUCT(--(B2:B21="closed")*(A2:A21<10))
=SUMPRODUCT(--(B2:B21="open")*(A2:A21<10))
 

petes

Board Regular
Joined
Sep 12, 2009
Messages
164
I am looking for the total count of OPEN and CLOSED that is <10 to appear in a single cell

I am using Excel 2007

Thank you
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,273
Office Version
  1. 365
  2. 2007
Platform
  1. Windows
Code:
=COUNTIFS(B2:B21,"closed",A2:A21,"<10")+COUNTIFS(B2:B21,"open",A2:A21,"<10")
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,398
Messages
5,831,405
Members
430,064
Latest member
Shahrukh kha

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