Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

MS Excel COUNTIF

Hello,

I am trying to work with a COUNTIF but I am trying to set a range that will include future data. Unfortunately, I cannot seem to find how to exclude blank cells. Here is what I'm doing.

I want to count all instances that do not include an order status of Cancelled. Therefore I am using the following formula.

=COUNTIF(E2:E200,"<>Cancelled")

Currently I only have 10 rows of data with 3 including the word cancelled. I should have a count of 7 but I am getting a count of 196.

How do I exclude the empty rows? I do not want to need to modify the formula every time additional data is added.

Thanks,

John
0
jpldpd
Asked:
jpldpd
1 Solution
 
Saqib Husain, SyedEngineerCommented:
Try

=COUNTIFS(E2:E200,"<>Cancelled",E2:E200,"<>")
0
 
jpldpdAuthor Commented:
Thanks! That was exactly what I needed!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now