Evening,
I am using the formula:
=SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="A"))
However, I now need to change the "A" at the end to A*, however this causes it to confuse the A* and A.
Any ideas how to adapt the formula would be appreciated.
Thanks
Evening,
I am using the formula:
=SUMPRODUCT((A$3:A$160=C2)*(B$3:B$160="A"))
However, I now need to change the "A" at the end to A*, however this causes it to confuse the A* and A.
Any ideas how to adapt the formula would be appreciated.
Thanks
Last edited by Cmorgan; 08-14-2013 at 02:41 PM.
if you mean A followed by a period, thats exactly what that will do...it will look for anything starting with A - apple, abc, a123, all of us....you name itHowever, I now need to change the "A" at the end to A*, however this causes it to confuse the A* and A.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
If A* is the only 2-character entry, then you could make the second term:
(LEN(B$3:B$160)=2)
or you could add that on as a third term with an * before it (i.e. AND).
Hope this helps.
Pete
This regular formula returns the count of rows where the Col_A value matches C2 and the Col_B value contains 2 or more characters and begins with A
Formula:Please Login or Register to view this content.
Is that something you can work with?
Many thanks
How about..
=SUMPRODUCT((A$3:A$16=C2)*(EXACT(B$3:B$16,"A*")))
Life's a spreadsheet, Excel!
Say thanks, Click *
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks