formula that compares different ranges

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need a formula that finds criteria in a range if a different range contains
text data.
I already use countif
EXAMPLE:
=countif(g4:g51,".")
now I need that formula to work only if (D4:D51) contains text data.
 
=SUMPRODUCT(--(ISTEXT(D4:D51)),--(G4:G51="."))

or if you by text means cells hold anything but blank

=SUMPRODUCT(--(D4:D51<>""),--(G4:G51="."))

--
Regards,

Peo Sjoblom

(No private emails please)
 
Thank you, Very helpful, have been struggling over this for the past couple
of days. problem solved.
 

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