extract from raw data from column

%3CLINGO-SUB%20id%3D%22lingo-sub-1307692%22%20slang%3D%22en-US%22%3Eextract%20from%20raw%20data%20from%20column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1307692%22%20slang%3D%22en-US%22%3E%3CP%3EHey%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20stumped%20on%20how%20to%20clean%20up%20the%20data%20that%20can%20extract%20every%20single%20time%20one%20of%20our%20items%20is%20being%20mentioned%20in%20the%20column%20labeled%20description.%20I%20am%20more%20familiar%20with%20creating%20formulas%20than%20using%20some%20of%20the%20other%20more%20advanced%20tools.%26nbsp%3B%20I%20think%20Power%20Query%20might%20have%20something%20that%20will%20help%20me%20out%20but%20not%20too%20familiar%20with%20it.%26nbsp%3B%20Ideally%2C%20I'd%20like%20a%20formula%20to%20work%20with%20but%20if%20there's%20a%20better%20way%2C%20I%20am%20open%20to%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%20every%20one%20of%20our%20items%20starts%20exactly%20as%20%22BAN%22%20and%20then%20follow%20with%204%20numbers%20e.g.%20BAN2345.%26nbsp%3B%20Some%20might%20be%20BAN130%20etc.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22arperez_1-1586910674078.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F184415i146919283C55C0FE%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22arperez_1-1586910674078.png%22%20alt%3D%22arperez_1-1586910674078.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20over%20700%20rows.%26nbsp%3B%20Pretty%20time%20consuming%20to%20go%20through%20the%20entire%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGoal%3A%20Have%20a%20cell%20for%20every%20item%20like%20column%20B%20and%20C.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22arperez_2-1586910728731.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F184416i8ED78788515F1CF7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22arperez_2-1586910728731.png%22%20alt%3D%22arperez_2-1586910728731.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewould%20appreciate%20some%20assistance%20on%20the%20matter.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EP.S.%20Any%20additional%20resources%20you'd%20recommend%20for%20me%20to%20continue%20to%20learn%20more%20on%20handling%20raw%20data%20and%20becoming%20a%20more%20advanced%20excel%20user%20would%20be%20helpful.%3C%2FP%3E%3CP%3EThanks%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1307692%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1308453%22%20slang%3D%22en-US%22%3ERe%3A%20extract%20from%20raw%20data%20from%20column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1308453%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F621780%22%20target%3D%22_blank%22%3E%40arperez%3C%2FA%3E%26nbsp%3BQuite%20a%20novice%20myself%20on%20PQ%2C%20since%20I've%20only%20recently%20started%20using%20Excel%20for%20the%20PC%20on%20my%20Mac%2C%20but%20the%20attached%20workbook%20holds%20a%20PQ%20solution.%20Real%20experts%20may%20laugh%20at%20it%2C%20but%20it%20works.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-04-15%20at%2009.43.05.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F184448i3A0B46330009F1EC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Screenshot%202020-04-15%20at%2009.43.05.png%22%20alt%3D%22Screenshot%202020-04-15%20at%2009.43.05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1310880%22%20slang%3D%22en-US%22%3ERe%3A%20extract%20from%20raw%20data%20from%20column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1310880%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3Bthat's%20really%20great!%20looks%20to%20have%20worked%20well%2C%20not%20sure%20on%20how%20to%20do%20this.%26nbsp%3B%20can%20you%20point%20the%20way%20for%20me%20to%20do%20so%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1311601%22%20slang%3D%22en-US%22%3ERe%3A%20extract%20from%20raw%20data%20from%20column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1311601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F621780%22%20target%3D%22_blank%22%3E%40arperez%3C%2FA%3E%26nbsp%3BYou're%20asking%20the%20deaf%20to%20lead%20the%20blind.%20There%20are%20literally%20thousands%20of%20sites%20out%20there%20that%20teach%20about%20Get%20%26amp%3B%20Transform%20(%22GT%22)%2F%20Power%20Query.%20As%20said%2C%20I%20have%20only%20recently%20discovered%20it%20and%20had%20no%20clue%20how%20to%20get%20started.%20Then%2C%20I%20stumbled%20over%20this%20site.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fyodalearning.com%2Ftutorials%2Fpower-query-tips-and-tricks%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyodalearning.com%2Ftutorials%2Fpower-query-tips-and-tricks%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20shows%20you%20very%20basics%20and%20some%20more%20advanced%20tricks.%20How%20to%20rename%20columns%2C%20how%20to%20import%20date%2C%20remove%20duplicates%2C%20replace%20values%2C%20unpivot%20columns%2C%20add%20filters%2C%20split%20columns%20etc.%20etc.%3C%2FP%3E%3CP%3EWhat%20I%20did%20in%20your%20case%20was%20to%20replicate%20the%20three%20examples%20you%20gave%20(Sheet1)%2C%20pulled%20it%20into%20GT%20and%20performed%20the%20following%20steps%3A%3C%2FP%3E%3CP%3E1)%20Duplicate%20the%20one%20column%20table%20so%20that%20I%20could%20still%20see%20the%20original%2C%20but%20it's%20not%20needed.%3C%2FP%3E%3CP%3E2)%20Then%20I%20replaced%20PD%2C%20(%20%2C%20)%20and%20%2F%20with%20blanks%20to%20get%20rid%20of%20the%20%22garbage%22%20in%20the%20data.%3C%2FP%3E%3CP%3E3)%20Then%20I%20split%20the%20column%20at%20the%20first%20space.%20This%20separated%20%22Drum%20set%22%20into%20its%20own%20column%2C%20which%20I%20then%20removed.%3C%2FP%3E%3CP%3E4)%20Finally%2C%20I%20split%20the%20column%20at%20the%20point%20where%20a%20number%20changed%20to%20a%20character.%20That%20only%20affected%20the%20third%20row%20and%20split%20the%20two%20BAN-numbers%20between%20the%207%20and%20the%20B.%3C%2FP%3E%3CP%3E5)%20Press%20%22Close%26amp%3B%20Load%22%20to%20create%26nbsp%3BSheet2.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20fact%2C%20this%20is%20no%20more%20than%20a%20fancy%20way%20of%20a%20doing%20%22find%20and%20replace%22%20and%20%22text-to-columns%22%20with%20the%20advantage%20that%20all%20your%20steps%20get%20recorded%20for%20you%20and%20keeping%20your%20original%20data%20(Sheet1)%20untouched.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20the%20help%20of%20the%20tips%20%26amp%3B%20tricks%2C%20I%20believe%2C%20you%20can%20get%20started%20as%20well.%20Just%20try.%20Make%20errors%2C%20screw%20up%20completely%2C%20get%20frustrated%20and%20then%20start%20from%20scratch.%20It%20might%20take%20few%20hours%2C%20but%20then%20you'll%20start%20to%20get%20the%20hang%20of%20it.%20From%20what%20I've%20seen%2C%20the%20sky%20(or%20perhaps%20only%20your%20own%20imagination)%20is%20the%20limit.%20Enjoy!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1356627%22%20slang%3D%22en-US%22%3ERe%3A%20extract%20from%20raw%20data%20from%20column%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1356627%22%20slang%3D%22en-US%22%3Eawesome%20thanks%20so%20much!%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hey all,

 

I am stumped on how to clean up the data that can extract every single time one of our items is being mentioned in the column labeled description. I am more familiar with creating formulas than using some of the other more advanced tools.  I think Power Query might have something that will help me out but not too familiar with it.  Ideally, I'd like a formula to work with but if there's a better way, I am open to it.

 

Note: every one of our items starts exactly as "BAN" and then follow with 4 numbers e.g. BAN2345.  Some might be BAN130 etc.

arperez_1-1586910674078.png

 

There are over 700 rows.  Pretty time consuming to go through the entire list.

 

Goal: Have a cell for every item like column B and C.

 

arperez_2-1586910728731.png

 

would appreciate some assistance on the matter.

 

P.S. Any additional resources you'd recommend for me to continue to learn more on handling raw data and becoming a more advanced excel user would be helpful.

Thanks so much!

4 Replies
Highlighted

@arperez Quite a novice myself on PQ, since I've only recently started using Excel for the PC on my Mac, but the attached workbook holds a PQ solution. Real experts may laugh at it, but it works.

Screenshot 2020-04-15 at 09.43.05.png

Highlighted

@Riny_van_Eekelen that's really great! looks to have worked well, not sure on how to do this.  can you point the way for me to do so?

 

Thanks so much!

Highlighted

@arperez You're asking the deaf to lead the blind. There are literally thousands of sites out there that teach about Get & Transform ("GT")/ Power Query. As said, I have only recently discovered it and had no clue how to get started. Then, I stumbled over this site.

https://yodalearning.com/tutorials/power-query-tips-and-tricks/ 

It shows you very basics and some more advanced tricks. How to rename columns, how to import date, remove duplicates, replace values, unpivot columns, add filters, split columns etc. etc.

What I did in your case was to replicate the three examples you gave (Sheet1), pulled it into GT and performed the following steps:

1) Duplicate the one column table so that I could still see the original, but it's not needed.

2) Then I replaced PD, ( , ) and / with blanks to get rid of the "garbage" in the data.

3) Then I split the column at the first space. This separated "Drum set" into its own column, which I then removed.

4) Finally, I split the column at the point where a number changed to a character. That only affected the third row and split the two BAN-numbers between the 7 and the B.

5) Press "Close& Load" to create Sheet2.

 

In fact, this is no more than a fancy way of a doing "find and replace" and "text-to-columns" with the advantage that all your steps get recorded for you and keeping your original data (Sheet1) untouched.

 

With the help of the tips & tricks, I believe, you can get started as well. Just try. Make errors, screw up completely, get frustrated and then start from scratch. It might take few hours, but then you'll start to get the hang of it. From what I've seen, the sky (or perhaps only your own imagination) is the limit. Enjoy!

 

Highlighted
awesome thanks so much!