Table Formula Dates

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

Table Formula Dates

Post by jstevens »

I'm having a challenge creating a formula referencing a table date field. I'm trying to use Text(Today(),"MMYYYY") in the formula.

I have provided a sample workbook.
EL_table_date.xlsx

Your suggestions are appreciated.
You do not have the required permissions to view the files attached to this post.
Regards,
John

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

Re: Table Formula Dates

Post by HansV »

Criteria range arguments of SUMIFS cannot be expressions, they must be ranges. You can use a SUMPRODUCT formula instead:

=SUMPRODUCT(tblDue[Amount],(TEXT(tblDue[Mail_Check],"MMYYYY")=TEXT(TODAY(),"MMYYYY"))*(tblDue[Vendor]=G2))
Best wishes,
Hans

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

Re: Table Formula Dates

Post by jstevens »

Thanks Hans!
Regards,
John

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

Re: Table Formula Dates

Post by jstevens »

Hans,

If I introduce an additional field column in the table called "Status" between Amount and Mail_Check (3rd Column) I would like to create a INDEX/MATCH formula to the Status field.

I'm having a challenge with this formula: =INDEX(tblDue,MATCH(TEXT(TODAY(),"MMYYYY"),TEXT(tblDue[Mail_Check],"MMYYYY"),0),3)

Thanks for taking a look.
Regards,
John

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

Re: Table Formula Dates

Post by HansV »

Try confirming the formula with Ctrl+Shift+Enter.
Best wishes,
Hans

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

Re: Table Formula Dates

Post by jstevens »

That would do it. :hairout:
Regards,
John