ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif question (https://www.excelbanter.com/excel-worksheet-functions/266601-countif-question.html)

SandyKazmir

Countif question
 
I've been playing with coordinate data and want to be able to make a box somewhere in the middle of the spread of data. I was hoping that someone could confirm this formula:

=(countif(A1:A10,"=-1")-countif(A1:A10,"1"))+(countif(B1:B10,"=-1")-countif(B1:B10,"1"))

Am I going about this all wrong? The answers spit out seem reasonable, but I haven't found anything on this topic on the web. Thank you for any help that can be provided.

SandyKazmir

Quote:

Originally Posted by SandyKazmir (Post 960382)
I've been playing with coordinate data and want to be able to make a box somewhere in the middle of the spread of data. I was hoping that someone could confirm this formula:

=(countif(A1:A10,"=-1")-countif(A1:A10,"1"))+(countif(B1:B10,"=-1")-countif(B1:B10,"1"))

Am I going about this all wrong? The answers spit out seem reasonable, but I haven't found anything on this topic on the web. Thank you for any help that can be provided.

Nevermind, I've found this to work much better:
=COUNTIFS(Work!AE309:AE357,"=-.708",Work!AE309:AE357,"<=.708",Work!AF309:AF357," =1.83",Work!AF309:AF357,"<=3.84")


All times are GMT +1. The time now is 04:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com