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
 

Some videos you may like

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
19,138
Office Version
2013
Platform
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
19,138
Office Version
2013
Platform
Windows
Code:
=COUNTIFS(B2:B21,"closed",A2:A21,"<10")+COUNTIFS(B2:B21,"open",A2:A21,"<10")
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,721
Messages
5,513,021
Members
408,932
Latest member
sbafw

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top