Split Data Into Rows Using Power Query

Split Data Into Rows Using Power Query

Excel Campus - Jon

3 года назад

50,101 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

吴晔苹
吴晔苹 - 25.05.2023 02:46

Thanks for the videos. Could power query split the data from 501021-24 into 501021 501022 501023 501024 in row?

Ответить
Christopher Thompson
Christopher Thompson - 03.05.2023 21:20

This question is somewhat related. But how would you split data from multiple columns into multiple rows, with multiple subsets of columns from a specific row? For instance, I have a form that collects the various interventions that schools use with their students - and each intervention has its own specific characteristics tied to it (Type - Academic/Behavior; Subject - Math/Reading; Tier Levels - 1/2/3; and Grade Levels K/1st/2nd/3rd/4th/5th/6th/7th/8th/9th/10th/11th/12th). So if a school uses 1 intervention then there would be 5 columns (+ demographic info), 2 interventions would mean 10 columns; 3 interventions - 15 columns. How do I make each group of 5 columns for each specific intervention its own row (along with the demographic info of the school submitting) in Excel?

Ответить
tzyy yng teo
tzyy yng teo - 15.04.2023 16:48

Very clear explanation and useful! Thank you.

Ответить
Vikas_Bhalekar
Vikas_Bhalekar - 26.01.2023 04:01

Super se bhi upar.. magic'

Ответить
my@love
my@love - 26.11.2022 12:44

Thank you ❤️❤️❤️

Ответить
Ignacio A
Ignacio A - 19.11.2022 00:28

you did the 2nd delimiter split for the ">" symbol in a SECOND step again. However, i have a scenario where my data has multiple delimiters like the following symbols: "/", a "," and "~" symbols But i've not seen an option, in that same PowerQuery window, where I can list the multiple delimiters in one field (or step). Can i do that?

Ответить
Iván Cortinas
Iván Cortinas - 01.06.2022 22:22

These are the best explanations you can find on the internet. Thank you Jon.

Ответить
Jen L
Jen L - 24.04.2022 17:47

Awesome tutorial. Thank you

Ответить
Ajay Viswanath
Ajay Viswanath - 07.02.2022 15:19

Thank you. It was very helpful.

Ответить
Anthony Palumbo
Anthony Palumbo - 20.10.2021 23:03

Awesome video! Kept putting into columns in Power BI when I needed the rows.

Ответить
Botsonyana Nyareli
Botsonyana Nyareli - 21.09.2021 17:35

Amazing technique....Your Dad just challenged you and you came to the top..this is beautiful and can be used in many smiliar situations WOW..PQ is here to change land scape of working with data...for sure

Ответить
Nami Hyeon
Nami Hyeon - 21.09.2021 12:17

hi, i tried the same method but my advance option does not have option for row. it only has no of columns to split into.

Ответить
Danny Tandela
Danny Tandela - 08.09.2021 09:51

Hi, Can you make a video how to transpose every n rows with more than 1 columns in query? For example data repeated every 4 rows with 2 columns

Ответить
Naresh Tekchandani
Naresh Tekchandani - 30.08.2021 10:30

You saved my life man

Ответить
Frances Luo
Frances Luo - 28.07.2021 18:58

Thank you for the video. What if I need to split multiple lines separated by line breaks and also with space in between in a row? Do I still use split column--> by delimiter? Thank you!

Ответить
Ben Kim
Ben Kim - 27.07.2021 07:21

thank you you saved me!

Ответить
Nai Phan
Nai Phan - 30.06.2021 09:20

This is so great! I have been searching for how to apply the power query steps to new data/worksheets. I didn’t know it was that simple as to copy and paste over the previous data. Thank you very much!

Ответить
Excel On Fire
Excel On Fire - 04.03.2021 23:10

VERY VERY NICE! 👊🏼💥

Ответить
MOHD. ZAKI BIN ISHAK -
MOHD. ZAKI BIN ISHAK - - 14.02.2021 07:36

Awesome! How could I split two rows of my email address into two columns, but put them in one row with different cell using power query? Tq.

Ответить
Rahul Bakshi
Rahul Bakshi - 09.02.2021 00:14

Good but this can be done by pasting data in MS Word and replace comma (,) with new line (^p) and then paste the data in Excel and then perform text to columns to remove unwanted texts.

Ответить
vikram raghuwanshi
vikram raghuwanshi - 30.01.2021 14:38

Hey Mr excel can we use a email lookout instead of it?CAn we do so?

Ответить
Wayne Edmondson
Wayne Edmondson - 02.01.2021 12:41

Hi Jon. Excellent lesson. Power Query is awesome! Can't get enough practice doing transformations and clean-up. Thanks for sharing :)) Thumbs up!!

Ответить
Souganthika Sridhar
Souganthika Sridhar - 04.12.2020 08:53

This is awesome! What does the "clean" option under the transform function accomplish?

Ответить
Excel Off The Grid
Excel Off The Grid - 15.11.2020 22:11

Power Query wins the day again.

If only more people knew that Power Query existed. Good work 👍

Ответить
Piseth 007
Piseth 007 - 14.11.2020 05:49

can I do this way if I copy file from PDF file ?

Ответить
Anmoldeep Singh
Anmoldeep Singh - 12.11.2020 11:34

I am pleasantly surprised to notice that even after 5k views and over 300 likes, there is not even a single dislike. This is rare nowadays..
Good job Jon. Keep up the good work..

Ответить
Auro
Auro - 09.11.2020 21:17

Amazing👍

Ответить
Waleed Aljuhaishe
Waleed Aljuhaishe - 08.11.2020 15:52

Thanks, I don’t have the option from data range. What should I do?

Ответить
MATT SORENSEN
MATT SORENSEN - 07.11.2020 20:33

John, I love your videos. You are so smart. Even though I don't have a need to use many of your fantastic methods I really like learning about them. It's nice to know all the things excel is capable of. Looks like this power query could be used as a Macro.

Ответить
Ranjith P
Ranjith P - 07.11.2020 18:31

Need query on something.. How to contact you?

Ответить
Shubham Vashisht
Shubham Vashisht - 07.11.2020 14:19

John awesome. It so much fun learning this..

Ответить
Naspoori Pramod
Naspoori Pramod - 07.11.2020 09:37

Not getting from table/ range option in data option in my excel

Ответить
Sailor70
Sailor70 - 06.11.2020 23:13

Jon, your explanation(s) of Excel capabilities / features is second to none. If one didn't know any better, they could easily assume you were the creator of Excel. Many thanks for all of your time and efforts - Keep the great videos coming!!!

Ответить
MTS6
MTS6 - 06.11.2020 22:21

Awesome video Jon! Thank you!

Ответить
Super Videos
Super Videos - 06.11.2020 22:04

Magic learnt. Best was the last step. Future mess can also be cleaned :)

Ответить
BEE NA
BEE NA - 06.11.2020 18:03

Love this:)

Ответить
Roberto Volpi
Roberto Volpi - 06.11.2020 10:30

You helped me a lot!

I was just struggling with that and magically appeared the solution.

Thanks again!

Ответить
Calvin K.
Calvin K. - 06.11.2020 05:40

thanks for the tip mate! I am sure I will make use of it someday.

Ответить
Digital Dan
Digital Dan - 06.11.2020 03:25

Excel is kludge upon kludge upon kludge, but I guess it's better to have the kludge available than not be able to do it at all. I've always done this sort of thing by spending some time in a text editor to get something I can import as a CSV file. If you can remember where everything is or you do this sort of thing enough, this would certainly be a little easier.

Ответить
Letty Santos
Letty Santos - 06.11.2020 03:06

Thanks john. Love your voice.

Ответить
Letty Santos
Letty Santos - 06.11.2020 02:18

Another food for my brain. Thank you. Love your voice.

Ответить
warren anderson
warren anderson - 06.11.2020 01:05

Great Video and instructions. Question: if I create a power query, render sent it file to someone outside my organization (i.e. a client), are they able to update the power query if new information is entered? Thank-you!!

Ответить
Maree Teolanafo
Maree Teolanafo - 06.11.2020 00:37

Excellent tutorial!

Ответить
Doug H
Doug H - 06.11.2020 00:35

PQ is sure a useful tool!

Ответить
Graham Parker
Graham Parker - 05.11.2020 22:14

Great one Jon

Ответить
Rico S
Rico S - 05.11.2020 21:17

Or if you prefer a "simple" formula:

=LET(_textToSplit,B7,_separator,";",
_textLen,LEN(_textToSplit),
_noOfOccurences,_textLen-LEN(SUBSTITUTE(_textToSplit,_separator,"")),
_seqChars,SEQUENCE(_textLen),
_findSeparator,INDEX(SORT(_seqChars*(MID(_textToSplit,_seqChars,1)=_separator)),SEQUENCE(_noOfOccurences,1,1+_textLen-_noOfOccurences)),
_seq,SEQUENCE(_noOfOccurences+1,1,0),
_startPos,IF(_seq=0,1,INDEX(_findSeparator,_seq)+1),
_endPos,IF(_seq=MAX(_seq),_textLen+1,_findSeparator),
_splitText,MID(_textToSplit,_startPos,_endPos-_startPos),
_comment,"----task specific function below, generic split function above!---",
_lenSplit,LEN(_splitText),
_emailStart,IFERROR(SEARCH("<",_splitText),_lenSplit),
_splitToCols,SWITCH({1,2},1,TRIM(LEFT(_splitText,_emailStart-1)),IF(_lenSplit=_emailStart,"",MID(_splitText,_emailStart+1,_lenSplit-_emailStart-1))),
_splitToCols)

That should do it! The first half of the function will work for general splits (return _splitText instead of _splitToCols), the last few rows I added in for this special circumstance!

Ответить
Kris East
Kris East - 05.11.2020 20:04

What version of Excel is this?

Ответить
Zohurul Islam
Zohurul Islam - 05.11.2020 20:03

Awesome!
Awesome!
And
Awesome!

Ответить
Johny McGowan
Johny McGowan - 05.11.2020 17:44

New subscriber ! Awesome 👍

Ответить