Counting data in a range based on data in another cell

S

Shasta

What i am trying here is to do a countif formula in a cell, but i want the
given condition to be in a different cell. For example, the condition for
the countif formulas is in cell A1. the range is B1:B25. I tried this
formula:

=countif(B1:B25,"A1")

I know i am missing something to tell excel that the condition is in cell A1
and not the value of A1. Please help!
 
M

Myrna Larson

Obviously you have to change the cell references to suit your layout. YOu
haven't said what that is, so we can't write the exact formula you need. If
you don't know how to reference cells on a different worksheet, check Help
topics on formulas and references.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top