Sumproduct and ISTEXT?

S

Sandy

I have two continually growing ranges.
I would like to establish how many times there is text in the same location
in each range - most of the values are 0.

I am guessing I need something like:

=sumproduct(--($AP$53:Offset($BG$53,0,0,$A$10),
ISTEXT),--($BH$53:Offset($BY$53,0,0,$A$10), ISTEXT))

naturally this won't work.

Sandy
 
T

T. Valko

Try this:

=SUMPRODUCT(--(ISTEXT($AP$53:OFFSET($BG$53,0,0,$A$10))),--(ISTEXT($BH$53:OFFSET($BY$53,0,0,$A$10))))
 
H

Harlan Grove

T. Valko said:
Try this:

=SUMPRODUCT(--(ISTEXT($AP$53:OFFSET($BG$53,0,0,$A$10))),
--(ISTEXT($BH$53:OFFSET($BY$53,0,0,$A$10))))
....

Might look a bit cleaner as

=SUMPRODUCT(--(ISTEXT(OFFSET($AP$53:$BG$53,0,0,$A$10))),
--(ISTEXT(OFFSET($BH$53:$BY$53,0,0,$A$10))))

but if there were many of these, it could be more efficient to use

=SUMPRODUCT(--(ISTEXT($AP$53:INDEX($BG$53:$BG$65536,$A$10))),
--(ISTEXT($BH$53:INDEX($BY$53:$BY$65536,0,0,$A$10))))

which avoids volatile functions.
 

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