Is it possible to use a wildcard with the SUMPRODUCT formula or an equivalent formula?
I have attached a sample workbook.
SUMPRODUCT with Wildcard
-
- GoldLounger
- Posts: 2631
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
SUMPRODUCT with Wildcard
You do not have the required permissions to view the files attached to this post.
Regards,
John
John
-
- Administrator
- Posts: 78568
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: SUMPRODUCT with Wildcard
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)
=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
Hans
-
- GoldLounger
- Posts: 2631
- Joined: 26 Jan 2010, 16:31
- Location: Southern California