Let me ask you a question: Let’s say you have 15 excel files (or .csv) in a folder. How do you import them into Minitab?
Are you thinking in these steps?
If you answered YES, you’re wasting your time!!!
There’s a quick and easy way to do this and it takes the same effort regardless of the number of files.
Pretty impressive, right?
Importing all files in a list with a macro
A more complex scenario is that you have a list of file names that you want to import. In this case again, there are three options
I hope that after reading this post you won’t use the completely manual approach anymore.
To solve this problem you can use the semi-manual approach or follow the next steps for a completely automated solution:
1 ) Paste the list of file names in Column C1 of any worksheet.
2 ) Open this macro and modify the appropriate variables
3 ) Save the macro in your Minitab Macro Folder. Make sure the file type is “All Files (*.*)”
(*) Usually the Minitab Macro Folder folder is “C:\Program Files\Minitab\Minitab 16\English\Macros”, however, you can change the path for the macros folder in Tools Options General Browse for the Macro Location OK.
4 ) Press Ctrl + L to show the Command Line Editor, Type %OpenFiles, and press Submit Commands
If you want to practice any of these methods, you can use your own files or you can download the following files:
Enjoy!!!
In the next post, I’ll explain how to append the information of all the worksheets you’ve imported.
Subscribe to the mailing list to get notified when the next post comes out.
Do you want to learn or get better at R programming? If yes, you will…
Go to Master Data Analysis Yes, you read the title of this post correctly, you…
In this post, I’ll show how to create a simple model to predict if a…
Are you wondering what's all this buzz about data science? The following videos will give…
Go to Master Data Analysis This is the 4th post of a series that covers…
Go to Master Data Analysis This is the 5th post of a series that covers…
View Comments
Orlando, I like the why you write the macro , do you know how get the p-value for a Run Chart? Don't use the graph info?
Hi Juan,
Unfortunately, that's not possible since the Run Chart
graph doesn't have a storage option. With a storage option you could be
able to save the p-values in a worksheet.
I asked your question
to the Minitab Technical Support team and they answered me that they
logged this request to be considered for future versions.
Hi Juan,
Unfortunately, that's not possible since the Run Chart graph doesn't have a storage option. With a storage option you could be able to save the p-values in a worksheet.
I asked your question to the Minitab Technical Support team and they answered me that they logged this request to be considered for future versions.
I saved the macro in the located as indicated above, but when I ran the macro it gave me this error message:
* ERROR * Undefined variable, illegal column or stored constant at X.
* ERROR * Completion of computation impossible.
I am using MINITAB14 importing an .xls file. Would this make a difference?
Hi Charles,
Did you pasted the list of file names in C1 of any worksheet?