ASAP Function

  • Thread starter Thread starter Help
  • Start date Start date
H

Help

I am trying to count and cells that have a number "11" in the cell and is
colored red.
The following formula, will count all cells that are red... but I only want
it to look at the cells with the "11". How do I do that?

=ASAPCountByFontColor(E5:E17,3)

Jane.
 
Hi,

I'm not really fimiliar with UDF's but should work with SUMPRODUCT, try:

=SUMPRODUCT((ASAPCountByFontColor(E5:E17,3))*(E5:E17=11))

HTH
Jean-Guy
 
Hi,

It's possible UDF's are stand alone formula, I"m not an expert so can't say
for sure. It might help to know why the cells are red, is there any
particular reason why the're painted red?

Regards!
Jean-Guy
 
If you put
=ASAPCountByFontColor(E5:E17,3)
in a cell by itself
Then select that cell
Hit F2, then F9
Then look at the formula bar

What do you see?

Do you see a single digit or do you see an array: ={1,3,6,1,3,1...}

If you see a single digit, then the ASAPCountByFontColor won't work in an array
formula like you want.
 
If you put
=ASAPCountByFontColor(E5:E17,3)
in a cell by itself
Then select that cell
Hit F2, then F9
Then look at the formula bar

What do you see?

Do you see a single digit or do you see an array: ={1,3,6,1,3,1...}

If you see a single digit, then the ASAPCountByFontColor won't work in an arry
formula like you want.
 

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

Back
Top