# Excel 2007 Formula

#### petes

##### Board Regular
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
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
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
Code:
``=COUNTIFS(B2:B21,"closed",A2:A21,"<10")+COUNTIFS(B2:B21,"open",A2:A21,"<10")``

#### petes

##### Board Regular
Cool... This is what i wanted.... thanks a lot

Replies
1
Views
396
Replies
3
Views
167
Replies
1
Views
88
Replies
11
Views
189
Replies
8
Views
166

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.

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.

### Which adblocker are you using?

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

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