SUMPRODUCT with Wildcard

jstevens
GoldLounger
Posts: 2631
Joined: 26 Jan 2010, 16:31
Location: Southern California

SUMPRODUCT with Wildcard

Post by jstevens »

Is it possible to use a wildcard with the SUMPRODUCT formula or an equivalent formula?

I have attached a sample workbook.
EL_TestMonth.xlsx
You do not have the required permissions to view the files attached to this post.
Regards,
John

User avatar
HansV
Administrator
Posts: 78568
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: SUMPRODUCT with Wildcard

Post by HansV »

No, but you can use the LEFT function: change G13 to 6 (as a text value, so prefixed by an apostrophe), and change the SUMPRODUCT formula to

=SUMPRODUCT((MONTH(A$2:A$8)>=1)*(MONTH(A$2:A$8)<=R_Summary_Month)*(YEAR(A$2:A$8)=2016)*(LEFT(B$2:B$8,1)=G13)*C$2:C$8)
Best wishes,
Hans

jstevens
GoldLounger
Posts: 2631
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: SUMPRODUCT with Wildcard

Post by jstevens »

Hans,

Thank you!
Regards,
John