MICROSOFT EXCEL – CHAPTER 10 Sravanthi Lakkimsetty Jan 20,2016
IMPORTING Importing –Inserting data from one application or file into another. Text, CSV, XML and Database files are the commonly imported files. Before importing we have to check if we want to manage the data as a separate entity in Excel or you want a connection to the original data source/application.
XML FILES XML is eXtensible Markup Language Files can contain a significant amount of machine readable data and allow us to easily import it into Microsoft Office to work with Steps to import –Go to Data tab->From Other Sources->From XML Data Import –Choose the XML file and click OK. –Choose the cell from where you want the data to be inserted from the XML file.
TEXT FILES The text file has.txt extension and contains only text (alphabets, numbers and symbols). We must choose a delimiter for importing. Ex: Space, tab or Comma etc Columns align according to the delimiters.
CSV FILES CSV abbreviated as Comma-Separated Values Text file with comma as delimiter. Excel imports the text between the commas in the text file into individual cells.
IMPORTING A TEXT FILE ->Data Ribbon ->Click “from text” which is in External data group ->Browse the location of text file ->Open the text file Text import wizard (3 steps) –Select the type that describes the data –Select the type of delimiter in your data –Select the format of column data –Select the location (where to import the data in your sheet)
IMPORTING AN ACCESS DATABASE TABLE OR QUERY ->Data ribbon ->Click “from access” in External data group ->Browse the location of file ->Open the file Import Wizard –Select the table in database which you want to import into your sheet –Select the location where you want to place the imported data
IMPORTS Import data from other sources SourceDefinition SQL ServerCreate a connection to an SQL server table and import data as a table or PivotTable. Analysis ServicesCreate a connection to an SQL server analysis services cube, and import data as a table or PivotTable XML Data ImportOpen or map an XML file into Excel Data Connection WizardImport data for an unlisted format by using the Data Connection Wizard and OLEDB. Microsoft QueryImport data for an unlisted format by using the Microsoft Query Wizard and ODBC.
CREATE A WEB QUERY A Web query enables Excel to go to a particular Web site to obtain information Web queries let you extract data from tables on a Web page We need this to display live stock prices, traffic reports, airport delays etc. If the Web address changes, you must change the Web query and URL to ensure you have the most accurate information and citation If you have to log in to the Web site, the query generally will not work
CREATE A WEB QUERY Select “FROM WEB” in Get External Data column. Specify the ULR in ADDRESS ( u can see the page by clicking GO ) Select IMPORT Select cells where to put data 10
CREATE A WEB QUERY
MANAGE CONNECTIONS When you import data using the options in the Get External Data group, Excel creates a link to the original data source Refresh connections periodically to ensure you have the most up-to-date and accurate information View or remove existing connections through the Workbook Connections dialog box
Refresh Connections Display Connections Set Connection Properties
MANAGE CONNECTIONS
CONVERT TEXT TO COLUMNS In the imported data, the data may not be structured in a way that meets your needs. If data is displayed in one column, use the Text to Columns command to separate the data into multiple columns Convert Text to Columns Wizard guides you through the process of separating data and choosing a delimiting character
CONVERT TEXT TO COLUMNS