help with sumproduct

N

nastech

trying to get the following work for data, has: x2 or y2
need to find how many 2's, trying the following, not working:

=SUMPRODUCT(--(RIGHT($T$123:$T$1055,1)=$BJ$7/10))

bj7 has: 20

thanks
 
R

RagDyeR

Your RIGHT() formula returns 'Text', so just change it to a numeric:

=SUMPRODUCT(--(--RIGHT($T$123:$T$1055)=$BJ$7/10))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

trying to get the following work for data, has: x2 or y2
need to find how many 2's, trying the following, not working:

=SUMPRODUCT(--(RIGHT($T$123:$T$1055,1)=$BJ$7/10))

bj7 has: 20

thanks
 
B

Biff

Hi!

Not much detail to work with........maybe this:

=SUMPRODUCT(--(--RIGHT($T$123:$T$1055)=$BJ$7/10))

However, if the rightmost character is not a number this will error: xx, yy

Maybe one of these:

=SUMPRODUCT(--(RIGHT($T$123:$T$1055)="2"))

=SUMPRODUCT(--(RIGHT($T$123:$T$1055)=TEXT($BJ$7/10,"0")))

Biff
 
N

nastech

Thanks, both; didn't know how to look up, what to call it.. thought the
text was playing, but couldn't find, just look up formats or text i guesse...
thanks
 
Top