Power Query - Create column based on source name

fsuguy92

New Member
Joined
Aug 27, 2015
Messages
34
Hey guys, I was wondering if it was possible to create a column based on the name of a source. For instance, I have sources called Arizona_Cardinals_report, Washington_Redskins_report, etc... I'd like it to look at the source name and call Arizona_Cardinals_report "Arizona Cardinals" and so on and so forth.

Currently I am importing the data from a csv and dropping it into an excel template that cleans the data for me. It is a HUGE file and takes forever, so I think Power Query might be a better way to do this efficiently.

Thanks!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
maybe try PQ with From Folder option then remove extension from the column and next add suffix _report
 
Upvote 0

Forum statistics

Threads
1,226,126
Messages
6,189,149
Members
453,526
Latest member
anyrandomtech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top