programsam
Board Regular
- Joined
- Feb 10, 2016
- Messages
- 123
If the subject isn't enough, hopefully the image will better explain. I have a folder where Power Query appends all of hte files. Each file has a different date and the date is always in the "Status/On order" column. I am trying to rename the column IF it has the word "Status" in it to remove all of the extra noise and just call it "STATUS".
Excel Formula:
= Table.TransformColumnNames(#"Promoted Headers", each if Text.Contains(Text.Upper(_),"Status") then "STATUS" else (_))