inkserious
Technical User
- Jul 26, 2006
- 67
I am trying to look down Column A and find all the cells whose value begins with the number two, and then sum the corresponding value in Column B. All of the values in Column A are three digit numbers. Below is the formula I am using; however, it returns a value of zero. C1 refers to a value of two. So if A1:A3 contained 201, 202 and 303 respectively, then the values in B1:B2 would be added together. B3 would be ignored as its first digit is three.
Is it because the LEFT function only looks at text strings and it sees the values in A1:A3 as numeric strings?
Thanks for any help anyone can offer.
-ep
Code:
=SUMPRODUCT(--(LEFT(Sheet2!A:A,1)=C1),Sheet2!B:B)
Is it because the LEFT function only looks at text strings and it sees the values in A1:A3 as numeric strings?
Thanks for any help anyone can offer.
-ep