Carlos A. Suárez-Núñez
csuarez@usfq.edu.ec
Slides adaptados de: ISE 3024 – Virginia Tech - Prof. John P. Shewchuk
1-0
q This
chapter: how to import text, database, and web
page data into Excel.
6–1
1
2/29/16
6–2
2
2/29/16
q Calculation
of PLTs:
where K = slack time factor
LS = lot size
6–4
6–5
3
2/29/16
6–7
4
2/29/16
6–8
6–9
5
2/29/16
6 – 10
6
2/29/16
6 – 12
7
2/29/16
PULLEY1.txt (tab-delimited)
Setup Run
Op Machine (min.) (min.)
10 FURN-01 30 45
20 L-04 or L-06 5 20
30 L-04 or L-06 5 5
40 L-04 or L-06 2 10
50 L-04 or L-06 10 20
60 L-04 or L-06 2 5
70 P-14 2 2
8
2/29/16
q Import as follows:
6 – 16
q Result:
6 – 17
9
2/29/16
q Unlike
text files, databases are very flexible when it
comes to retrieving data.
q Can
6 – 19
10
2/29/16
6 – 21
11
2/29/16
Machine
machine dept description quantity
CMM I Helmel coordinate measuring machine 1
DP-03 D Orbit drill press 3
HM-04 M Cincinnatti 2mh horizontal milling machine 2
HM-06 M Van Norman 26SU horizontal milling machine 1
HOB W Hobart arc welder 6
MC-H M Hurco 5-axis machining center 1
P50 W GE P50 articulated robot welding center 1
PP-01 P Scotchman F160/130 punch press 1
ROCKB I Rockwell B hardness tester 1
VBS-001 S Marvel Mark II vertical band saw 1
VM-02 M Bridgeport vertical milling machine 2
VM-03 M Cincinnatti Toolmaster vertical milling machine 1
6 – 22
12
2/29/16
q Result:
6 – 24
6 – 25
13
2/29/16
• Specify options
- e.g., formatting
6 – 26
6 – 27
14
2/29/16
6 – 28
• Our table:
Op. Description Dept. Machine Setup Run
6 – 29
15
2/29/16
q One approach:
• locate RyersonIndustries.htm (browser).
6 – 30
6 – 31
16
2/29/16
q Various alternatives:
• manually.
• automatically (every x minutes).
• whenever the Excel file is opened.
17
2/29/16
6 – 34
q This section shows how we can import data into Excel 2010.
• detailed steps for using the software.
q We’ll
demonstrate with our LJ Machining problem scenario,
where required.
6 – 35
18
2/29/16
1. On the Data tab, click on From Text. The Import Text File
dialog box will appear.
2. Locate and select the desired text file, then click on
Import. The Text Import Wizard will then launch, with the
first screen as shown on the following page.
6 – 37
19
2/29/16
Click Next>.
6 – 38
20
2/29/16
PULLEY1.txt:
3. First screen: select Delimited, start with row 1.
PULLEY2.txt:
3. First screen: select Fixed width, start with row 3.
6 – 41
21
2/29/16
6 – 42
2. The Choose Data Source dialog box will appear. In the
Database tab, click on MS Access Database*, then click
OK.
6 – 43
22
2/29/16
23
2/29/16
6. Third screen (Sort Order): specify the order in which the
imported rows are to appear.
• select the column to sort by in the Sort by drop-
down list.
• Select Ascending or Descending (radio buttons).
• Repeat the above as desired for multi-level sorts.
6 – 46
8. The Import Data dialog box opens. Ensure Table and
Existing Worksheet are selected, then enter the starting
location for the data and click OK.
6 – 47
24
2/29/16
6 – 48
6 – 49
25
2/29/16
6 – 50
1. On the Data tab, click on From Web. The New Web
Query dialog box appears, with your default Web
browser running.
3. You will see yellow arrow boxes ( ) indicating tables that
can be imported. Click on the arrow box corresponding to
the table you want to import.The arrow box changes to a
checkbox ( ).
6 – 51
26
2/29/16
5. The Import Data dialog box opens. Enter the starting
location for the data, then click Properties....
6 – 53
27
2/29/16
6 – 54
6 – 55
28
2/29/16
6 – 56
29
2/29/16
6 – 58
Text Files:
30
2/29/16
3. Click the Definition tab, then select Edit Query.... Excel
will take you through the steps used to create your query
once again. You can simply examine what was done, or
make changes as needed.
6 – 60
6 – 61
31
2/29/16
6 – 62
32