1

Here is a COUNTIF function with an additional range of values to match at the end. Why does it not work and how can I get it to work.

=COUNTIF('[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877,AND('[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877>=548,'[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877<=554)

2 Answers 2

3

If you can't use COUNTIFS you subtract one COUNTIF from another like this

=COUNTIF('[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877,">=548")-COUNTIF('[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877,">554")

that counts between 548 and 554 inclusive

Sign up to request clarification or add additional context in comments.

1 Comment

nice trick! particularly useful for Excel version prior to 2007
2

You cannot use COUNTIF with AND because the second part must be a criteria.
Plus, the second part (criteria) shouldn't repeat the range.

You can use COUNTIFS if you are using Excel version 2007 or higher. Else, you can use an array formula.

Something like this maybe:

=COUNTIFS('[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877,">=548",
          '[DATABASE 1.xlsx]Sheet1'!$AC$3:$AC$51877,"<=554")

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.