<?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 Exclude saturday and sunday between 2 sum dates in Search the Community</title>
    <link>https://community.qlik.com/t5/Search-the-Community/Exclude-saturday-and-sunday-between-2-sum-dates/m-p/1849603#M657</link>
    <description>&lt;P&gt;Hey all.&lt;/P&gt;
&lt;P&gt;I need help with a formula. I have an excel sheet that have every state with transit time.(I've attach the excel sheet below). From other side I have&amp;nbsp; a ship date in date format. I've managed to sum dates and exclude saturday and sunday if&amp;nbsp; ship date(TranDate) +&amp;nbsp; ground date =&amp;nbsp;saturday or sunday. This is the formula below:&lt;/P&gt;
&lt;P&gt;=Date(if(WeekDay(TranDate + "Ground date") = 'Sat', date(TranDate + [Ground date] + 2), if(WeekDay(TranDate + "Ground date") = 'Sun', date( TranDate + [Ground date] + 1), &lt;STRONG&gt;date(( TranDate + [Ground date])&lt;/STRONG&gt;)))).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help to exclude weekend dates between TranDate and Ground date. Example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="codyt97_0-1634742715744.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64865iD575CEA7B7F7279D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="codyt97_0-1634742715744.png" alt="codyt97_0-1634742715744.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Order H208222 have ship date(TranDate field) for 11/4 to California&amp;nbsp; and have ground date&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;4 days. 11/4 is a Thursday, so 4 business days should mean delivery date of 11/10, not 11/8.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you in advance,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cody&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Oct 2021 16:36:33 GMT</pubDate>
    <dc:creator>codyt97</dc:creator>
    <dc:date>2021-10-20T16:36:33Z</dc:date>
    <item>
      <title>Exclude saturday and sunday between 2 sum dates</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Exclude-saturday-and-sunday-between-2-sum-dates/m-p/1849603#M657</link>
      <description>&lt;P&gt;Hey all.&lt;/P&gt;
&lt;P&gt;I need help with a formula. I have an excel sheet that have every state with transit time.(I've attach the excel sheet below). From other side I have&amp;nbsp; a ship date in date format. I've managed to sum dates and exclude saturday and sunday if&amp;nbsp; ship date(TranDate) +&amp;nbsp; ground date =&amp;nbsp;saturday or sunday. This is the formula below:&lt;/P&gt;
&lt;P&gt;=Date(if(WeekDay(TranDate + "Ground date") = 'Sat', date(TranDate + [Ground date] + 2), if(WeekDay(TranDate + "Ground date") = 'Sun', date( TranDate + [Ground date] + 1), &lt;STRONG&gt;date(( TranDate + [Ground date])&lt;/STRONG&gt;)))).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help to exclude weekend dates between TranDate and Ground date. Example&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="codyt97_0-1634742715744.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/64865iD575CEA7B7F7279D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="codyt97_0-1634742715744.png" alt="codyt97_0-1634742715744.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Order H208222 have ship date(TranDate field) for 11/4 to California&amp;nbsp; and have ground date&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;4 days. 11/4 is a Thursday, so 4 business days should mean delivery date of 11/10, not 11/8.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you in advance,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cody&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Exclude-saturday-and-sunday-between-2-sum-dates/m-p/1849603#M657</guid>
      <dc:creator>codyt97</dc:creator>
      <dc:date>2021-10-20T16:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude saturday and sunday between 2 sum dates</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Exclude-saturday-and-sunday-between-2-sum-dates/m-p/1849708#M658</link>
      <description>&lt;P&gt;Something like this...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Date(
	 [TranDate]
     + [Ground date]
     + NetWorkDays([TranDate] + 1, [TranDate] + [Ground date])
) AS [ResultDate]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Oct 2021 18:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Exclude-saturday-and-sunday-between-2-sum-dates/m-p/1849708#M658</guid>
      <dc:creator>JGMDataAnalysis</dc:creator>
      <dc:date>2021-10-20T18:37:12Z</dc:date>
    </item>
  </channel>
</rss>

