<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: How to count number of presents and absents in Excel in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-count-number-of-presents-and-absents-in-Excel/m-p/88683#M39192</link>
    <description>&lt;P&gt;Hi Sai,&lt;BR /&gt;&lt;BR /&gt;For your requirement, I created a workflow as below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12065.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12237iD02B6DCF43DD78CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="12065.png" alt="12065.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;My input excel file looks something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12066.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12234i36548095CAEDBE80/image-size/large?v=v2&amp;amp;px=999" role="button" title="12066.png" alt="12066.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In the first half of the workflow, I am reading the data from excel using basic excel actions such as Create Instance, Open Workbook, Get Worksheet As Collection and Close Instance to get desired dataset into a collection called as Data:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12067.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12238i55C33D36434C947F/image-size/large?v=v2&amp;amp;px=999" role="button" title="12067.png" alt="12067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Once, I have my Data Collection ready, I am iterating through my data collection using a Loop stage first. Within the loop stage, I use the &lt;STRONG&gt;'Filter Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Filtered Name Collection&lt;/STRONG&gt;'. This collection will consist of the record from the Data collection where Name column is equal to the current iteration Name column value. Below are the filter parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12068.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12240iD108A91D46D5DC53/image-size/large?v=v2&amp;amp;px=999" role="button" title="12068.png" alt="12068.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;'Filter Name Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12069.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12235i4D6AF18FFEC1B579/image-size/large?v=v2&amp;amp;px=999" role="button" title="12069.png" alt="12069.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I use the &lt;STRONG&gt;'Transpose Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Transposed Collection&lt;/STRONG&gt;' by providing the input collection as the '&lt;STRONG&gt;Filtered Name Collection&lt;/STRONG&gt;' which I generated in my prior action . The action parameters are as below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12070.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12242iDEEE861A1C51E283/image-size/large?v=v2&amp;amp;px=999" role="button" title="12070.png" alt="12070.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;'Transposed Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12071.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12236i5C6E746DDE05B9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="12071.png" alt="12071.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I again use the &lt;STRONG&gt;'Filter Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Absentees Collection&lt;/STRONG&gt;'. This collection will consist of the record from the &lt;STRONG&gt;'Transposed Collection' &lt;/STRONG&gt;generated from the prior action where Value column is equal to '&lt;STRONG&gt;A&lt;/STRONG&gt;' . Below are the filter parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12072.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12241iFCFC5EBBE671F1E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="12072.png" alt="12072.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;'Absentees Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12073.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12239i22EDBD4CD2F599DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="12073.png" alt="12073.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Next, I again use the &lt;STRONG&gt;'Filter Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Presentees Collection&lt;/STRONG&gt;'. This collection will consist of the record from the &lt;STRONG&gt;'Transposed Collection' &lt;/STRONG&gt;generated from the prior action where Value column is equal to '&lt;STRONG&gt;P&lt;/STRONG&gt;' . Below are the filter parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12074.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12243iB82D999A3D809C3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="12074.png" alt="12074.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;'Presentees Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12075.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12244i0CFAD087E5876A6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="12075.png" alt="12075.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, since I have two collections with me which provide me rows with presentees records and absentees records, so I can simply get the count of rows for each of these collections into separate data items:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12076.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12254iB662B2EAE74AD0AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="12076.png" alt="12076.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;At the end, I add rows to a Defined collection called as 'Final Collection' with three fields namely, Name, Number Of Absent Days and Number Of Present Days:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12077.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12245iE3AA253ADAC4F8B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="12077.png" alt="12077.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12079.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12252iF30121B0D9E838D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="12079.png" alt="12079.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;At the end of the workflow execution I get the Final Collection as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12081.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12249iED4FC03B1647723F/image-size/large?v=v2&amp;amp;px=999" role="button" title="12081.png" alt="12081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 26 Jun 2022 20:21:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-06-26T20:21:00Z</dc:date>
    <item>
      <title>How to count number of presents and absents in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-count-number-of-presents-and-absents-in-Excel/m-p/88682#M39191</link>
      <description>&lt;SPAN&gt;Hi Team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an employee excel file ,there i have to find out how many days an employee "Present &amp;amp; Absent'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note; p=present,&amp;nbsp; A=Absent. for reference please find below data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12085.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12251i52E360AD06750BEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="12085.png" alt="12085.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sai&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Jun 2022 16:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-count-number-of-presents-and-absents-in-Excel/m-p/88682#M39191</guid>
      <dc:creator>Sai</dc:creator>
      <dc:date>2022-06-26T16:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to count number of presents and absents in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-count-number-of-presents-and-absents-in-Excel/m-p/88683#M39192</link>
      <description>&lt;P&gt;Hi Sai,&lt;BR /&gt;&lt;BR /&gt;For your requirement, I created a workflow as below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12065.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12237iD02B6DCF43DD78CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="12065.png" alt="12065.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;My input excel file looks something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12066.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12234i36548095CAEDBE80/image-size/large?v=v2&amp;amp;px=999" role="button" title="12066.png" alt="12066.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In the first half of the workflow, I am reading the data from excel using basic excel actions such as Create Instance, Open Workbook, Get Worksheet As Collection and Close Instance to get desired dataset into a collection called as Data:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12067.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12238i55C33D36434C947F/image-size/large?v=v2&amp;amp;px=999" role="button" title="12067.png" alt="12067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Once, I have my Data Collection ready, I am iterating through my data collection using a Loop stage first. Within the loop stage, I use the &lt;STRONG&gt;'Filter Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Filtered Name Collection&lt;/STRONG&gt;'. This collection will consist of the record from the Data collection where Name column is equal to the current iteration Name column value. Below are the filter parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12068.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12240iD108A91D46D5DC53/image-size/large?v=v2&amp;amp;px=999" role="button" title="12068.png" alt="12068.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;'Filter Name Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12069.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12235i4D6AF18FFEC1B579/image-size/large?v=v2&amp;amp;px=999" role="button" title="12069.png" alt="12069.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I use the &lt;STRONG&gt;'Transpose Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Transposed Collection&lt;/STRONG&gt;' by providing the input collection as the '&lt;STRONG&gt;Filtered Name Collection&lt;/STRONG&gt;' which I generated in my prior action . The action parameters are as below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12070.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12242iDEEE861A1C51E283/image-size/large?v=v2&amp;amp;px=999" role="button" title="12070.png" alt="12070.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;'Transposed Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12071.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12236i5C6E746DDE05B9F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="12071.png" alt="12071.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, I again use the &lt;STRONG&gt;'Filter Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Absentees Collection&lt;/STRONG&gt;'. This collection will consist of the record from the &lt;STRONG&gt;'Transposed Collection' &lt;/STRONG&gt;generated from the prior action where Value column is equal to '&lt;STRONG&gt;A&lt;/STRONG&gt;' . Below are the filter parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12072.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12241iFCFC5EBBE671F1E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="12072.png" alt="12072.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;'Absentees Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12073.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12239i22EDBD4CD2F599DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="12073.png" alt="12073.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Next, I again use the &lt;STRONG&gt;'Filter Collection'&lt;/STRONG&gt; action from&lt;STRONG&gt; 'Utility - Collection Manipulation'&lt;/STRONG&gt; business object to get a collection named '&lt;STRONG&gt;Presentees Collection&lt;/STRONG&gt;'. This collection will consist of the record from the &lt;STRONG&gt;'Transposed Collection' &lt;/STRONG&gt;generated from the prior action where Value column is equal to '&lt;STRONG&gt;P&lt;/STRONG&gt;' . Below are the filter parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12074.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12243iB82D999A3D809C3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="12074.png" alt="12074.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;STRONG&gt;'Presentees Collection'&lt;/STRONG&gt; current value after executing the action will be:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12075.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12244i0CFAD087E5876A6C/image-size/large?v=v2&amp;amp;px=999" role="button" title="12075.png" alt="12075.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, since I have two collections with me which provide me rows with presentees records and absentees records, so I can simply get the count of rows for each of these collections into separate data items:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12076.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12254iB662B2EAE74AD0AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="12076.png" alt="12076.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;At the end, I add rows to a Defined collection called as 'Final Collection' with three fields namely, Name, Number Of Absent Days and Number Of Present Days:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12077.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12245iE3AA253ADAC4F8B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="12077.png" alt="12077.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12079.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12252iF30121B0D9E838D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="12079.png" alt="12079.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;At the end of the workflow execution I get the Final Collection as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12081.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12249iED4FC03B1647723F/image-size/large?v=v2&amp;amp;px=999" role="button" title="12081.png" alt="12081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Jun 2022 20:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-count-number-of-presents-and-absents-in-Excel/m-p/88683#M39192</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-06-26T20:21:00Z</dc:date>
    </item>
  </channel>
</rss>

