Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conditional Formatting Rules in Excel
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • Example of COUNTIFS with variable table column in Excel
  • How to create running total in an Excel Table
  • How to do a t-Test in Excel?

References

  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • Count unique text values with criteria
  • Perform case-sensitive Lookup in Excel
  • How to use Excel VLOOKUP Function
  • How to get first column number in range in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation only dates between
  • Excel Data validation whole percentage only
  • Excel Data validation specific characters only
  • Excel Data validation don’t exceed total

How to convert Excel file to XML data file

by

You can convert your Excel file to an XML data file, or vice versa. This enables you to exchange data between different applications. First, turn on the Developer tab.

Here’s the data we want to convert to an XML data file.

First, we will create a schema based on XML source data. The schema defines the structure of the XML file. We have to do this outside Excel.

1. For example, open Notepad and add the following lines.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<data-set xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<record>
<LastName>Smith</LastName>
<Sales>16753</Sales>
<Country>UK</Country>
<Quarter>Qtr 3</Quarter>
</record>
<record>
<LastName>Johnson</LastName>
<Sales>14808</Sales>
<Country>USA</Country>
<Quarter>Qtr 4</Quarter>
</record>
</data-set>

Note: the tags refer to the column names, but you can give them any name you want! For example, instead of LastName use Name.

2. Save the file as schema.xml.

3. Open data-set.xlsx.

4. On the Developer tab, in the XML group, click Source to open the XML Source task pane.

5. To add an XML map, click XML Maps.

The XML Maps dialog box appears.

6. Click Add.

7. Select schema.xml and click OK twice.

8. Now simply drag (map) the 4 elements from the tree onto the worksheet (row 1).

9. On the Developer tab, in the XML group, click Export.

10. Save your file as data-set.xml and press Enter.

Result:

That saves quite a lot of time!

Note: to import an XML file, open a blank workbook, on the Developer tab, in the XML group, click Import, and select the XML file.

Post navigation

Previous Post:

VLOOKUP without #N/A error in Excel

Next Post:

Manipulating text strings using Left, Mid, Right, Len, Substitute in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Invoice status with nested if in Excel
  • How to use Excel OR Function
  • Extract multiple matches into separate rows in Excel
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Extract date from a date and time in Excel
  • Add workdays no weekends in Excel
  • Two ways to sum time over 30 minutes in Excel
  • Add workdays to date custom weekends in Excel
  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • How to randomly assign data to groups in Excel
  • Map inputs to arbitrary values in Excel
  • Running count group by n size in Excel
  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel

General

  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • Zoom Worksheet in Excel
  • How to get original number from percent change in Excel
  • Check if range contains a value not in another range in Excel
  • Count cells less than in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning