Formula Assistance Utilizing a Table

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

Formula Assistance Utilizing a Table

Post by jstevens »

I'm having a challenge with a SUMIFS formula. The value being returned is 0, not the intended result.
=SUMIFS(Trans_Amt,Trans_Type,H3,Trans_Date,">="&TEXT(FromDt,"yyyy-mm-dd"),Trans_Date,"<="&TEXT(ToDt,"yyyy-mm-dd"))

I have attached a sample workbook.
el_table_result.xlsx
Thanks for taking a look.
You do not have the required permissions to view the files attached to this post.
Regards,
John

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

Re: Formula Assistance Utilizing a Table

Post by HansV »

Try this:

=SUMPRODUCT(Table1[trans_amt], (Table1[trans_type]=H3)*(Table1[trans_date]>=TEXT(FromDt, "yyyy-mm-dd"))*(Table1[trans_date]<=TEXT(ToDt, "yyyy-mm-dd")))
Best wishes,
Hans

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

Re: Formula Assistance Utilizing a Table

Post by jstevens »

Hans,

Your suggestion worked.

Thank you.
Regards,
John