<?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: Interpretation of Dates going wrong in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854034#M656519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_165606_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87590_QlikCommunity_Thread_165606_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_165606_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/87591_QlikCommunity_Thread_165606_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2015 22:00:29 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2015-05-26T22:00:29Z</dc:date>
    <item>
      <title>Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854029#M656514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use an Excelsheet for analysis, but I have some issues with the interpretation of a date field. In Excel the date records look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="197"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="197"&gt;9/30/2014 5:06:55 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;9/30/2014 5:12:19 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;9/30/2014 5:12:39 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;9/30/2014 5:15:59 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;9/30/2014 5:58:36 PM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;10-1-2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;10-1-2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;10-2-2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;10-2-2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;10-3-2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All date-records should have the MM/DD/YYYY format, but Excel shows the first records as text. The last records are interpreted as date, but with a wrong format(DD-MM-YYYY instead of MM-DD-YYYY).&lt;/P&gt;&lt;P&gt;Is there an easy way to read all these records in the right format without having to change the Excel-data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 20:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854029#M656514</guid>
      <dc:creator />
      <dc:date>2015-05-26T20:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854030#M656515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14326734657788033" jivemacro_uid="_14326734657788033" modifiedtitle="true"&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;DATE(FLOOR(ALT(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date#(F1,'M/D/YYYY h:mm:ss TT'), // Try first format&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date#(F1,'M-D-YYYY') // then second&lt;/P&gt;
&lt;P&gt;)))&amp;nbsp; as Date&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:06:55 PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:12:19 PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:12:39 PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:15:59 PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:58:36 PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-1-2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-1-2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-2-2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-2-2014&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-3-2014&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 20:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854030#M656515</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-26T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854031#M656516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Perry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not good that your Excel spreadsheet has duff values in.&amp;nbsp; If you can fix the source it will be better all round.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to deal with what you have here though, with a bit of code something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Date(if(Alt(DateField, 0) * 1 &amp;lt;&amp;gt; 0, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateField,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#(DateField, 'D/MM/YYYY h:mm:ss TT')),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'MM/DD/YYYY') as CorrectDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code with the &lt;STRONG&gt;Alt&lt;/STRONG&gt; and the multiplication is a sure fire way to check you have a valid date field in Excel (don't worry about how it looks in Excel - this is not important), if it is a valid date you can just take it as is.&amp;nbsp; The &lt;STRONG&gt;Date#&lt;/STRONG&gt; code is converting from string to a proper date, the parameter is the format of the string we are reading.&amp;nbsp; The &lt;STRONG&gt;IF&lt;/STRONG&gt; block is wrapped in a &lt;STRONG&gt;Date&lt;/STRONG&gt; statement which then formats the field how we want it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 20:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854031#M656516</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-26T20:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854032#M656517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post an Excel sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 21:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854032#M656517</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-26T21:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854033#M656518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the fast responses.&lt;/P&gt;&lt;P&gt;I know it's not very wise to use different formats, but the data comes from a machine running with a MM-DD-YYYY - format as default and my system uses a DD-MM-YYYY as default format. I have +100k of records, so I'm not eager to change the Excel-sheets.&lt;/P&gt;&lt;P&gt;The script of Clever works partly (the first 12 days of the month aren't recognized als shown in the pic). &lt;IMG alt="Knipsel.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87588_Knipsel.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;It seems I'm not able to post an Excel sample. How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Perry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 21:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854033#M656518</guid>
      <dc:creator />
      <dc:date>2015-05-26T21:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854034#M656519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_165606_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87590_QlikCommunity_Thread_165606_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_165606_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/87591_QlikCommunity_Thread_165606_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854034#M656519</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-26T22:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854035#M656520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I just solved it. Maybe not the most elegant way of doing this, but it seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the input of Clever I made the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(alt(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date#(F1,'M/D/YYYY h:mm:ss TT'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(YEAR(F1),DAY(F1),month(F1))))) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using the makedate function I was able to swap the month and day. Not sure if it generates any other problems along the way, but for now it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854035#M656520</guid>
      <dc:creator />
      <dc:date>2015-05-26T22:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854036#M656521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this post the data I have to deal with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854036#M656521</guid>
      <dc:creator />
      <dc:date>2015-05-26T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854037#M656522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Timestamp(Alt(TimeString,Timestamp#(TimeString,'MM/DD/YYYY hh:mm:ss TT'))) as Timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a preceding load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DayName(Timestamp) as Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get both the Timestamp as well as the Date information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87595" alt="QlikCommunity_Thread_165606_Pic3.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87595_QlikCommunity_Thread_165606_Pic3.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14326788625428941 jive_text_macro" jivemacro_uid="_14326788625428941"&gt;
&lt;P&gt;table1:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DayName(Timestamp) as Date;&lt;/P&gt;
&lt;P&gt;LOAD StateAfter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TimeString,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(Alt(TimeString,Timestamp#(TimeString,'MM/DD/YYYY hh:mm:ss TT'))) as Timestamp,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgText&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FROM [&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-objectid="166622" data-objecttype="13" href="https://community.qlik.com/servlet/JiveServlet/download/2061-165606-783209-166622/demodata.xlsx"&gt;https://community.qlik.com/servlet/JiveServlet/download/783209-166622/demodata.xlsx&lt;/A&gt;&lt;SPAN&gt;] (ooxml, embedded labels, table is [Copy ]);&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 22:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854037#M656522</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-26T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854038#M656523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Perry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had issues with dates in excel files when converting from mm/dd/yyyy to the correct way of dd/mm/yyyy. Excel likes to take a guess at what you mean and makes changes as it sees fit, so if it sees a date with the day of 13 or more it knows that is the day and switches but if the day is 12 or less it assumes it's the month and keeps it. No messages or warnings just "fixes" it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fix the dates in excel prior to loading into Qlikview would be my tactic. I use a macro that sets the formula of a cell to the cell value. This by default gets excel to treat the dates as mm/dd/yyyy. I tried it with your sample data and all of your dates were treated as October.&amp;nbsp; It doesn't seem right to post excel macros on a QlikView post. So if such things offend, please look away &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;VBA Code block--&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;Sub TrimInPlace()&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;'&amp;nbsp; Ron Campbell&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;'Highlight a section of cells&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;'step through cell by cell trimming the contents&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;'Trimming will only occur on visible cells, the macro skips any rows that are hidden or not visible as a result of a filter&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;If ActiveWorkbook Is Nothing Then&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;End If&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;On Error GoTo ErrorHandler&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;Application.Calculation = xlCalculationManual&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;Dim currCell As Range&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Selection.Count &amp;gt; 1 Then&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selection.SpecialCells(xlCellTypeVisible).Select&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each currCell In Selection.Cells&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not Application.IsNA(currCell) Then&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; currCell.Formula = Replace(Replace(Replace(Trim(currCell.Value), Chr(160), ""), Chr(10), ""), "&amp;nbsp; ", " ")&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'restore the user's calculation setting&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Application.Calculation = xlCalculationAuto&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;ErrorExit:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'restore the user's calculation setting&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application.Calculation = xlCalculationAuto&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'the ErrorHandler code should only be executed if there is an error&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Sub&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;ErrorHandler:&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print Err.Number &amp;amp; vbLf &amp;amp; Err.Description&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resume ErrorExit&lt;/P&gt;
&lt;P style="font-size: 13.3333330154419px;"&gt;End Sub&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 02:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854038#M656523</guid>
      <dc:creator>campbellr</dc:creator>
      <dc:date>2015-05-27T02:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854039#M656524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all. For now I'll stick to my own solution &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; : not the most elegant solution, but (with my limited knowledge about scripting) for me easy to understand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Perry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854039#M656524</guid>
      <dc:creator />
      <dc:date>2015-05-27T07:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854040#M656525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;OL class="dp-xml" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin: 0 0 1px 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;DATE(FLOOR(ALT(&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; Date#(F1,'M/D/YYYY h:mm:ss TT'), // Try first format&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp; Date#(F1,'DD-MM-YYYY') // then second&amp;nbsp; changed here!&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;)))&amp;nbsp; as Date&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;INLINE [&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:06:55 PM&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:12:19 PM&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:12:39 PM&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:15:59 PM&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9/30/2014 5:58:36 PM&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-1-2014&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-1-2014&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-2-2014&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-2-2014&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-3-2014&amp;nbsp; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;];&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 12:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854040#M656525</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-27T12:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interpretation of Dates going wrong</title>
      <link>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854041#M656526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with your solution is the dates are all september and october in m/d/y format but you are switching them to d/m/y for days between 1 and 12. This is the problem that Perry was having to start with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 00:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interpretation-of-Dates-going-wrong/m-p/854041#M656526</guid>
      <dc:creator>campbellr</dc:creator>
      <dc:date>2015-05-28T00:50:56Z</dc:date>
    </item>
  </channel>
</rss>

