<?xml version="1.0" encoding="us-ascii"?><InstanceReport xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Version>2.4.0.8</Version><ReportLongName>031 - Disclosure - Accounts Payable and Accrued Expenses (Tables)</ReportLongName><DisplayLabelColumn>true</DisplayLabelColumn><ShowElementNames>false</ShowElementNames><RoundingOption /><HasEmbeddedReports>false</HasEmbeddedReports><Columns><Column FlagID="0"><Id>1</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><CurrencyCode /><FootnoteIndexer /><hasSegments>false</hasSegments><hasScenarios>false</hasScenarios><MCU><KeyName /><CurrencySymbol /><contextRef><ContextID>Context_FYE__30-Jun-2013</ContextID><EntitySchema>http://www.sec.gov/CIK</EntitySchema><EntityValue>0001362718</EntityValue><PeriodDisplayName /><PeriodType>duration</PeriodType><PeriodStartDate>2012-07-01T00:00:00</PeriodStartDate><PeriodEndDate>2013-06-30T00:00:00</PeriodEndDate><Segments /><Scenarios /></contextRef><UPS /><CurrencyCode /><OriginalCurrencyCode /></MCU><CurrencySymbol /><Labels><Label Key="CalendarSupplement" Id="0" Label="12 Months Ended" /><Label Key="Calendar" Id="1" Label="Jun. 30, 2013" /></Labels></Column></Columns><Rows><Row FlagID="0"><Id>1</Id><IsAbstractGroupTitle>true</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>1</Level><ElementName>us-gaap_PayablesAndAccrualsAbstract</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText /><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>xbrli:stringItemType</ElementDataType><SimpleDataType>string</SimpleDataType><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Accounts Payable and Accrued Expenses [Abstract]</Label></Row><Row FlagID="0"><Id>2</Id><IsAbstractGroupTitle>false</IsAbstractGroupTitle><LabelSeparator>

</LabelSeparator><Level>2</Level><ElementName>us-gaap_ScheduleOfAccountsPayableAndAccruedLiabilitiesTableTextBlock</ElementName><ElementPrefix>us-gaap_</ElementPrefix><IsBaseElement>true</IsBaseElement><BalanceType>na</BalanceType><PeriodType>duration</PeriodType><IsReportTitle>false</IsReportTitle><IsSegmentTitle>false</IsSegmentTitle><IsCalendarTitle>false</IsCalendarTitle><IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow><IsEquityAdjustmentRow>false</IsEquityAdjustmentRow><IsBeginningBalance>false</IsBeginningBalance><IsEndingBalance>false</IsEndingBalance><IsReverseSign>false</IsReverseSign><PreferredLabelRole>verboseLabel</PreferredLabelRole><FootnoteIndexer /><Cells><Cell FlagID="0" ContextID="Context_FYE__30-Jun-2013" UnitID=""><Id>1</Id><IsNumeric>false</IsNumeric><IsRatio>false</IsRatio><DisplayZeroAsNone>false</DisplayZeroAsNone><NumericAmount>0</NumericAmount><RoundedNumericAmount>0</RoundedNumericAmount><NonNumbericText>&lt;div align="justify" style="margin-left: 27pt; display: block; margin-right: 0pt; text-indent: 0pt;"&gt;
&lt;div align="left"&gt;
&lt;table style="width: 90%; font-family: times new roman; font-size: 10pt;" cellspacing="0" cellpadding="0"&gt;
&lt;tr&gt;
&lt;td width="66%" valign="bottom" style="padding-bottom: 2px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160; &lt;/font&gt;&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom" style="padding-bottom: 2px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; font-weight: bold; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="10%" valign="bottom" style="border-bottom: black 2px solid; text-align: center; margin-left: 0pt; margin-right: 0pt; text-indent: 0pt;" colspan="2"&gt;
&lt;div style="text-align: center; margin-left: 0pt; display: block; margin-right: 0pt; text-indent: 0pt;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; font-weight: bold; display: inline;"&gt;&lt;font style="display: inline;"&gt;June 30, 2013&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="padding-bottom: 2px; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; font-weight: bold; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom" style="padding-bottom: 2px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; font-weight: bold; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="10%" valign="bottom" style="border-bottom: black 2px solid; text-align: center; margin-left: 0pt; margin-right: 0pt; text-indent: 0pt;" colspan="2"&gt;
&lt;div style="text-align: center; margin-left: 0pt; display: block; margin-right: 0pt; text-indent: 0pt;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; font-weight: bold; display: inline;"&gt;&lt;font style="display: inline;"&gt;June 30, 2012&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="padding-bottom: 2px; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; font-weight: bold; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr bgcolor="#cceeff"&gt;
&lt;td align="left" width="66%" valign="bottom"&gt;
&lt;div align="left" style="margin-left: 0pt; display: block; margin-right: 21.6pt; text-indent: 0pt;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;Accounts payable&lt;/font&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" valign="bottom" style="text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;$&lt;/font&gt;&lt;/td&gt;
&lt;td width="9%" valign="bottom" style="text-align: right;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;1,206,760&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" valign="bottom" style="text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;$&lt;/font&gt;&lt;/td&gt;
&lt;td width="9%" valign="bottom" style="text-align: right;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;1,436,369&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr bgcolor="white"&gt;
&lt;td align="left" width="66%" valign="bottom" style="padding-bottom: 2px;"&gt;
&lt;div align="left" style="margin-left: 0pt; display: block; margin-right: 21.6pt; text-indent: 0pt;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;Accrued expenses&lt;/font&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom" style="padding-bottom: 2px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" valign="bottom" style="border-bottom: black 2px solid; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="9%" valign="bottom" style="border-bottom: black 2px solid; text-align: right;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&lt;font style="display: inline;"&gt;145,800&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="padding-bottom: 2px; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom" style="padding-bottom: 2px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" valign="bottom" style="border-bottom: black 2px solid; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="9%" valign="bottom" style="border-bottom: black 2px solid; text-align: right;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&lt;font style="display: inline;"&gt;149,782&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="padding-bottom: 2px; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr bgcolor="#cceeff"&gt;
&lt;td align="left" width="66%" valign="bottom" style="padding-bottom: 4px;"&gt;
&lt;div align="left" style="margin-left: 0pt; display: block; margin-right: 21.6pt; text-indent: 0pt;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;Total&lt;/font&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom" style="padding-bottom: 4px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" valign="bottom" style="border-bottom: black 4px double; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;$&lt;/font&gt;&lt;/td&gt;
&lt;td width="9%" valign="bottom" style="border-bottom: black 4px double; text-align: right;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&lt;font style="display: inline;"&gt;1,352,560&lt;/font&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="padding-bottom: 4px; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td align="left" width="1%" valign="bottom" style="padding-bottom: 4px;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;td width="1%" valign="bottom" style="border-bottom: black 4px double; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;$&lt;/font&gt;&lt;/td&gt;
&lt;td width="9%" valign="bottom" style="border-bottom: black 4px double; text-align:
 right;"&gt;1,586,151&lt;/td&gt;
&lt;td width="1%" nowrap="nowrap" valign="bottom" style="padding-bottom: 4px; text-align: left;"&gt;&lt;font style="font-size: 10pt; font-family: times new roman; display: inline;"&gt;&amp;#160;&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="display: block; text-indent: 0pt;"&gt;&amp;#160;&lt;/div&gt;</NonNumbericText><FootnoteIndexer /><CurrencyCode /><CurrencySymbol /><IsIndependantCurrency>false</IsIndependantCurrency><ShowCurrencySymbol>false</ShowCurrencySymbol><DisplayDateInUSFormat>false</DisplayDateInUSFormat></Cell></Cells><ElementDataType>nonnum:textBlockItemType</ElementDataType><SimpleDataType>na</SimpleDataType><ElementDefenition>Tabular disclosure of the (a) carrying value as of the balance sheet date of liabilities incurred (and for which invoices have typically been received) and payable to vendors for goods and services received that are used in an entity's business (accounts payable); (b) other payables; and (c) accrued liabilities. Examples include taxes, interest, rent and utilities. Used to reflect the current portion of the liabilities (due within one year or within the normal operating cycle if longer). An alternative caption includes accrued expenses.</ElementDefenition><ElementReferences>No definition available.</ElementReferences><IsTotalLabel>false</IsTotalLabel><UnitID>0</UnitID><Label>Schedule of accounts payable and accrued expenses</Label></Row></Rows><Footnotes /><IsEquityReport>false</IsEquityReport><ReportName>Accounts Payable and Accrued Expenses (Tables)</ReportName><MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel><SharesRoundingLevel>UnKnown</SharesRoundingLevel><PerShareRoundingLevel>UnKnown</PerShareRoundingLevel><ExchangeRateRoundingLevel>UnKnown</ExchangeRateRoundingLevel><HasCustomUnits>true</HasCustomUnits><IsEmbedReport>false</IsEmbedReport><IsMultiCurrency>false</IsMultiCurrency><ReportType>Sheet</ReportType><RoleURI>http://www.tianyinpharma.com/role/AccountsPayableandAccruedExpensesTables</RoleURI><NumberOfCols>1</NumberOfCols><NumberOfRows>2</NumberOfRows></InstanceReport>
