Hi,
I tried importing the following text file into excel.
There is a data and time stamp; open; high; low; close; volume
I don't know how to get excel to recognize the time stamp column.
Can anyone help?
Thanks,
Ivan
Hi,
I tried importing the following text file into excel.
There is a data and time stamp; open; high; low; close; volume
I don't know how to get excel to recognize the time stamp column.
Can anyone help?
Thanks,
Ivan
Create an empty Exel file. Select a cell where you want to download data. Then, select “Data” “from the text/CSV” tab and select your text file. In the dialog box, click the "Download" button. As a result, you get a table with your data where the dates are due to full dates.
If you feel that I helped, can add a reputation.
Just an observation.
I clicked on the text file. I opened in Notepad by itself (default selection on my computer). I then selected all, copied and pasted into Excel.
No conversion required.
that's great that worked for you.
That doesn't happen over here.
I really don't know how you did that and that it actually happened since there is no file posted under your response.
Using q2009 instructions above, attached is the file
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Should the second column be time in military format. In the original text file this cannot be determined from the data shown. You would have needed to advise us of such. Are the six digit format supposed to be hh:mm:ss format? If so that needs to be programmed. If I assumed correctly then I have formatted the second column as time in Power query before closing and loading to native excel. You can review the mcode in the file.
Last edited by alansidman; 01-11-2025 at 07:09 PM.
Open the attached.
Highlight the data / copy / paste to Excel range A1
once loaded into power query I applied the following Mcode before loading and closing to Native Excel.Yeah I need military time. How did you convert the column to time?
![]()
Please Login or Register to view this content.
A VBA solution is given below where ADO and SQL used.
The important point is, file name should not involve "." so I renamed the file as NQ 03-06_Last.txt
Both the Excel file and the text file must be in the same folder.
![]()
Please Login or Register to view this content.
Output is;
Last edited by Haluk; 01-12-2025 at 10:32 AM.
You guys are advanced.....so I did it like this.
And there is another issue I am having.
the current data downloaded is the 1 min time frame,
I need to convert and or adjust the data set for the 15 min, 60, and 240 minute time frames and chart it.
any ideas on how I can accomplish this?
Thanks
Because it is not excel but Power Query. You can format any way you like once you bring it into native excel.![]()
Please Login or Register to view this content.
I am not understanding your issue. Perhaps you can show us what you get and then mock up what you expect. Your descriptions are not helpful to diagnose and offer a solution.![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks