search
HomeComputer TutorialsComputer KnowledgeHow to split data to NTFS using Power Query

How to split data to NTFS using Power Query

Mar 15, 2024 am 11:00 AM
dataquerypower

This article will introduce how to use Power Query to split data into rows. When exporting data from other systems or sources, it is common to encounter situations where the data is stored in cells combining multiple values. With Power Query, we can easily split such data into rows, making the data easier to process and analyze.

如何使用Power Query将数据拆分为NTFS

This can happen if the user doesn't understand Excel's rules and accidentally enters multiple data into a cell, or if the data is not formatted correctly when copying/pasting it from other sources. Processing this data requires additional steps to extract and organize the information for analysis or reporting.

How to split data in Power Query?

Power Query transformation can split data into different cells or rows based on a variety of different factors such as strings, text patterns, and data types. You just need to select the column containing the data you want to split and then use the "Split Column" feature in the "Transform" tab in Power Query Editor to easily split the data. In this article, we will explore in detail how to split data into rows using Power Query.

How to split data into rows using Power Query

To use Power Query to split data into rows, you need to perform the following steps:

Suppose our data is in the form of a text string containing a name and email address separated by a semicolon. For example, you can refer to the screenshot example below.

如何使用Power Query将数据拆分为NTFS

Right-click the cell containing the data and select "Get data from table/range" from the context menu.

如何使用Power Query将数据拆分为NTFS

Click OK in the Create Table pop-up window and make sure the "My table has heads" option is unchecked. The data will open in Power Query Editor.

如何使用Power Query将数据拆分为NTFS

Split data into databases through Delimeter

By default, Power Query treats the entire cell content as a single value and loads it as a single record with only one column and one row. To split the data, go to the Split columns menu in the Home tab and select By delimiter. This option allows you to split the values ​​in a selected column based on a specified delimiter. The remaining options in the menu allow you to split column values ​​based on other factors, such as a specified number of characters, position, or transition.

如何使用Power Query将数据拆分为NTFS

After clicking "By Delimiter", a Split Column by Delimiter window will appear. Select a string (a character or sequence of characters that separates and distinguishes individual values ​​in a data set) in Select or Input String. Since in our case, semicolon separates the data values, we selected semicolon from the semicolon menu, as shown in the screenshot below:

如何使用Power Query将数据拆分为NTFS

Next, click and expand Advanced Options and select Split into ‘Rows’. Click OK to apply changes.

Power Query will now parse your data, splitting it on each occurrence and placing each entry on its own separate row.

如何使用Power Query将数据拆分为NTFS

As you can see in the screenshot above, our data has been nicely split into rows. Again, we'll split the data to separate names from email addresses.

Split data into columns through Delimeter

Click the "Split Columns" button under the "Transform" section in the "Home" tab and select "By Separator". The Split Columns by Delimiter window will appear.

For Power Query to convert data correctly, delimiters must be correctly identified and specified. For example, in our example, use a less-than sign (&) to separate the name and email address. So we'll select Custom in the Select or enter delimiter dropdown and type the less than sign (in most cases, Power Query will automatically try to determine if your data contains values ​​separated by a delimiter, and if so, that What is the separator?).

如何使用Power Query将数据拆分为NTFS

This time, we will not click the "Advanced Options" button because we want to keep the default value, which is Split into "Columns". Click OK to apply the changes.

Power Query will transform your data and place names and email addresses in separate columns, as shown in the image below:

如何使用Power Query将数据拆分为NTFS

Note:

  • You can perform additional steps to remove spaces or extra characters from your data. For example, in our example, each email address is followed by a greater than symbol (). >To get rid of it, we will right-click on the column header and select Replace Values. Then replace "" with " (enter "" in the "Value to find" field and leave the "Replace with" field blank).
  • You can give each column a descriptive name by double-clicking its title.

When finished, click the "Close Loading" button in the upper left corner of Power Query Editor to export the data in a new Excel worksheet. &

如何使用Power Query将数据拆分为NTFS

that's all! I hope you find this useful.

Read: How to convert columns to columns using formulas in Excel.

How to convert columns to rows in Power Query?

Select the columns to convert to rows. Go to the Transform tab. Then go to the Unpivot Columns menu in the Any Column group and select Unpivot Selected Columns Only. Power Query will convert the selected columns into rows and create two new columns, one for the attribute name and another for its corresponding value. If necessary, rename the columns and click the Close and Load buttons to save changes to the data.

Read Next: How to Group and Ungroup Rows and Columns in Excel.

The above is the detailed content of How to split data to NTFS using Power Query. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:每日运维. If there is any infringement, please contact admin@php.cn delete
Is Outriders Crossplay Not Working? Why and How to Fix It? - MiniToolIs Outriders Crossplay Not Working? Why and How to Fix It? - MiniToolMay 10, 2025 am 12:03 AM

What is Outriders Crossplay? How to enable it? Is Outriders Crossplay not working? If you are hit by this annoying issue, how to get rid of the trouble? Take it easy and go to see this post from php.cn to know much information about the game.

How to Use ChatGPT on Android and iOS Devices? See the Guide! - MiniToolHow to Use ChatGPT on Android and iOS Devices? See the Guide! - MiniToolMay 10, 2025 am 12:02 AM

Is ChatGPT available on Android & iOS? How to use ChatGPT on mobile devices? If you wonder about questions to these queries, this post could help you. Here, php.cn offers a detailed guide to you to help you easily run ChatGPT on your iPhone and A

Get ms-resource:AppName/Text Issue in Windows 11/10? Fix It!Get ms-resource:AppName/Text Issue in Windows 11/10? Fix It!May 10, 2025 am 12:01 AM

What is ms-resource:AppName/Text in Windows 11/10? How to remove this prominent problem from your PC? Take it easy if you suffer from this issue, go to find out what you should do to address it in this post on the php.cn website.

Notion Download, Install, Update, and Reset on Windows/Mac - MiniToolNotion Download, Install, Update, and Reset on Windows/Mac - MiniToolMay 09, 2025 am 12:54 AM

The Notion is a popular productivity program used for note-taking and organizing your thoughts, projects, and information. If you have not tried it yet, you should give it a chance. This article about Notion download on php.cn Website will give you a

How to Fix SSL Certificate Error in FireFox/Chrome? - MiniToolHow to Fix SSL Certificate Error in FireFox/Chrome? - MiniToolMay 09, 2025 am 12:53 AM

SSL certificate error is a common error when using a browser. Why does it occur and how to fix it on Windows 10/11? Follow the suggestions in this post on php.cn Website, you can resolve it easily.

Fix Windows Defender Exclusions Not Working Windows 11/10 - MiniToolFix Windows Defender Exclusions Not Working Windows 11/10 - MiniToolMay 09, 2025 am 12:52 AM

Do you know what is the Windows Defender exclusions? Do you have any idea how to exclude a folder from Windows Defender Windows 11/10? What if Windows Defender exclusions not working? Read this post given by php.cn to get the answers.

Windows 10 22H2 First Preview Build: Windows 10 Build 19045.1865 - MiniToolWindows 10 22H2 First Preview Build: Windows 10 Build 19045.1865 - MiniToolMay 09, 2025 am 12:51 AM

Microsoft has just released Windows 10 build 19045.1865 to the Release Preview Channel. This is the first preview build for Windows 10 22H2. php.cn Software will show you some related information about this build in this post.

Steam Not Downloading at Full Speed? A Quick Guide Here!Steam Not Downloading at Full Speed? A Quick Guide Here!May 09, 2025 am 12:50 AM

Steam gains large popularity among game players all around the world for its rich variety of games. However, have you ever encountered Steam not downloading at full speed? Why is Steam not downloading at full speed? If your Steam download speed drops

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.