Regarding datetime values, is there an encoding that I can select from
SQL Developer that when I export to Excel it is formatted as datetime?.
I tried UTF-8 & UTF8. What appeared was,
01/01/85 12:00:00.000000000 AM
This isn't filterable from the filter drop down in excel.
In Microsoft's SSMS, I could select ANSI and the datetimes values would appear fine.
But SQL Developer doesn't seem to have this option (ANSI).
Current work around that I do is to extract in Excel the value into another column with the date formulas (date, year, month, day).
Edit
Exporting as datetime that excel can interpret, oracle can actually do it as well.
But it must be exported as csv.
It is the same for Microsoft's SSMS.
The oracle excel export that I was using had results that were in 1 sheet and the sql executed in the another.
No, we don't format the cells when we create the Excel file. You'll need to do that in Excel when you open it.
Related
I am exporting reports as XLS files from Salesforce. These reports have dates that I want to be able to manipulate in Excel but... Excel doesn't recognize them as dates.
The format outputted by Salesforce right now is m/d/yyyy (ie: 8/18/2022). When I go in Excel and change the format to date... the data is not recognized as a date.
It seems the only thing that Excel can consume are dates configured as yyyy-mm-dd.
I tried to play with Excel formatting date form with no luck.Excel doesn't recognize the Salesforce format, or does not propose anything similar to it
Is there a setting in Salesforce or in Excel that I need to adjust so that both apps can generate, and digest the same date configs?
I want to run these reports weekly so whatever requires the less Excel gymnastic will be the best solution (Google Docs for instance recognize dates as Salesforce spits them... - but I can't use GDocs at work).
You should use PowerQuery to import the data to Excel.
In PowerQuery change the Column-Type USING LOCAL
Select Date and English (United States)
Voila!
I am trying to export some data to Excel via SQL-Server SSIS.
Everything works so far, but the data in Excel are not recognized as a date or decimal number, so that the user of the sheet first has to laboriously reformat.
Is there a way to export the data directly so that the correct format is recognized?
I select the data via OLE-DB-Source from a SQL-Server 2014 and than I do a data conversion to map the fields to the data formats of SSIS:
VARCHAR to DT_WSTR,
DECIMAL to DT_R8,
DATE to DT_DATE
Finally I use the excel-Export task to create a xlsx-File dynamically.
That works but I want that the data are in the format that the user of the Excel can directly filter and summarizing the data. That doesn't work.
I have a PowerApp which is connected to Excel (OneDrive Business).
I want to write some Data to a table.
The problem are the DateTime.
If I choose for example "07.03.2021 01:00" in the DatePicker/TimePicker the "correct?" format is created für the Update-Field (I didn't change anything in the Update Formula).
But in Excel is a funny number written: 1615075200000
I tryed to format the cells in Excel as Datetime, number, text ... before writing to the cell/table nothing helps.
For some times (see ID's 1-8 in Excel screenshot) there was a datetime wrote, I don't know why.
What I have to change that the right datetime will be written to Excel, and the datetime should be displayed in excel as "07.03.2021 01:00"
I believe it's excel cells date-time format.
I am doing exactly as your example and the date-time updated in excel with the correct format.
Please check the below screenshots
Can you verify the Excel sheet date format?
In SQL Server I often check error logs directly in SSMS, but when I export them as CSV files, the DateTime component is converted from Australian to US format.
This is what it shows - in AUS format:
But this is how it's imported into Excel - US format:
I've tried to import the LOG file using PowerQuery, but it doesn't detect the column is a DateTime column, and when I try and convert it, I get Error.
I thought PowerQuery was "smart" to know the data types of columns. If I have to Add Columns by stripping the text into its date components, I might as well have just done it in the vanilla File Open CSV wizard.
Thanks
In Power query, right click on the column and select
Change Type
Using Locale
Pick Date/Time and English(Australia)
It will then be converted into a "real" date/time.
Of course, it will be displayed in PQ in accordance with your Windows Regional Settings short-date format.
Once you load it into Excel, you can change the cell numberformat to display it in the date/time format of your choice.
I have a excel file that automatically imports data from an Oracle DB into the sheet. Everything works fine, but date formatting is wrong. In the Oracle DB, the format is 01-JAN-2016. But when it exports to Excel, the format suddenly changes to 1/1/2016.
Is there a good solution to this? Setting the cell format beforehand doesn't work. Once the data is imported, Excel automatically switches format to Date. I have tried a lot but can not solve this issue so I am wondering if any of you have ideas as to what to do. Thanks.
The date isn't stored in "01-JAN-2016" format, that's just a representation of the underlying date value.
The recordset contains the data, not its representation. Format the column with a NumberFormat like dd-mmm-yyyy, and 2016/01/01 will look like 01-JAN-2016.