Search tab using indirect for number of times in a range

P

Pierre

Using
=COUNTIF(INDIRECT(A1!$B$2:$B$112,)"SOLD")
Actually trying to use the tab name (referenced in cell A1), to look
at the range B2:B112 and count the number of times the word "SOLD"
appears. I need to use the indirect function, as there is a long list
of tab names in column A.

The formula is misbehaving. . .Thanks in advance for ideas.
Pierre
 
P

Pete_UK

Try it this way:

=COUNTIF(INDIRECT(A1&"!B2:B112"),"SOLD")

with your sheet name in A1.

Hope this helps.

Pete
 
P

Pierre

Pete:
Works like a charm. Many thanks.
Pierre
Try it this way:

=COUNTIF(INDIRECT(A1&"!B2:B112"),"SOLD")

with your sheet name in A1.

Hope this helps.

Pete




- Show quoted text -
 

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