<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>To read number of rows in an excel sheet</title><link>https://community.appian.com/discussions/f/plug-ins/17445/to-read-number-of-rows-in-an-excel-sheet</link><description>I have to know the number of rows in an uploaded excel sheet in order to give a validation based on number of rows in the excel sheet. Can anyone help in this please. 
 
 
 
 
 Thanks in Advance, 
 Pramod</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: To read number of rows in an excel sheet</title><link>https://community.appian.com/thread/68766?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 18:00:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:287f7d21-154c-437d-93f4-d7f8c9321470</guid><dc:creator>Pramod Kumar Reddy Uppula</dc:creator><description>&lt;p&gt;Thanks a lot. This works fine.&lt;/p&gt;
&lt;p&gt;I just thought of using this one:&lt;/p&gt;
&lt;p&gt;load(&lt;br /&gt; local!pramod: readexcelsheet(&lt;br /&gt; todocument(ri!document),&lt;br /&gt; 0,&lt;br /&gt; 1&lt;br /&gt; ),&lt;br /&gt; local!pramodTest: a!forEach(&lt;br /&gt; items: local!pramod.result,&lt;br /&gt; expression: fv!index&lt;br /&gt; ),&lt;br /&gt; max(local!pramodTest)&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think yours looks more precise. Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: To read number of rows in an excel sheet</title><link>https://community.appian.com/thread/68764?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 17:38:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9460fe94-4240-4a3d-be07-619ee3b56849</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use the below expression to get the number of rows in the excel sheet.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if(
  document(
    ri!document,
    &amp;quot;extension&amp;quot;
  ) = &amp;quot;XLSX&amp;quot;,
  count(
    a!flatten(
      index(
        readexcelsheet(
          excelDocument: ri!document,
          sheetNumber: 0,
          startRow: 1,
          numberOfColumns: 1
        ),
        &amp;quot;result&amp;quot;,
        null
      )
    )
  ),
  0
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/b/appmarket/posts/excel-tools"&gt;https://community.appian.com/b/appmarket/posts/excel-tools&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>