Forum Discussion
Excel Forumla to exclude empty cells.
All,
I am using the following formula on my excel worksheet and it is including blank cells.
I was wondering if anyone could assist on helping me modify it to ignore/disregard the blank cells.
="# of Other Tech Tickets:"&COUNTIF(A5:A279, "<>Tech Name")
In the above formula, I'm getting the following result. I wish I was efficient as the number below.. In actually I only worked 27 total, 14 of my own an 13 of other techs (different names), so I'm trying to exclude my name (which I had accomplish, I believe) but it's counting blank/empty cells.
# of Other Tech Tickets:261 |
Any input is greatly appreciated! I can't seem to figure this out.
Hi,
The best way to do so is to use COUNTIFS (with s) as below instead of COUNTIF, which allows you to add more than one criteria.
="# of Other Tech Tickets: "&COUNTIFS(A1:A279,"<>Tech Name",A1:A279,"<>"&"")
Hope that helps
6 Replies
- PeterBartholomew1Silver Contributor
I would vote for Haytham Amairah's solution other than observing that the final parameter of COUNTIFS, "<>"&"", reduces to "<>" and can be used in that form.
- Haytham AmairahSilver Contributor
- JwanShaCopper Contributor
Hello,
If I understand correctly, you want to make sure that the "0's" are not counted bc it can have an effect on the tasks completed. Please see the link below.
https://www.google.com/search?q=how+to+exclude+empty+cells+in+excel&rlz=1C1GCEU_enUS826US826&oq=how+to+esxclude+empty+ce&aqs=chrome.1.69i57j0l5.6338j0j7&sourceid=chrome&ie=UTF-8#kpvalbx=1
- Haytham AmairahSilver Contributor
Hi,
The best way to do so is to use COUNTIFS (with s) as below instead of COUNTIF, which allows you to add more than one criteria.
="# of Other Tech Tickets: "&COUNTIFS(A1:A279,"<>Tech Name",A1:A279,"<>"&"")
Hope that helps
- ulken2019Copper Contributor