Forum Discussion
Combining text from two column's and creating a new list
- Feb 15, 2018
Microsoft Power Query for Excel is available for 32-bit (x86) and 64-bit (x64) platforms, your selection must match architecture of the installed version of Office.
https://www.microsoft.com/en-us/download/details.aspx?id=39379
Hi Detlef,
Can't install Power Query as it requires the 64 bit Excel version, I'm reatricted to the 32bit version.
Thanks for the suggestion.
Any other ideas as to how I might achieve my column extraction & combining !!
Am wondering if I need to look into some sort of VB option.
Regarsds.
Microsoft Power Query for Excel is available for 32-bit (x86) and 64-bit (x64) platforms, your selection must match architecture of the installed version of Office.
https://www.microsoft.com/en-us/download/details.aspx?id=39379
- Michael ColwellFeb 16, 2018Copper Contributor
Hi Sergi,
Thanks for the link, not sure how I missed that..!!
Have installed and will try to work through combining the column's as per my original post.
Regards.
- Detlef_LewinFeb 16, 2018Silver Contributor
Michael,
first change the list into an Excel Table (CTRL-T) and query from table.
And then change the preliminary code to:
let Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content], #"Changed Type" = Table.TransformColumnTypes(Source,{{"Base Code", type text}, {"Variant", type text}}), #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Changed Type", {{"Variant", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "Variant"), #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Variant", Int64.Type}}), #"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Changed Type1", {{"Variant", type text}}, "de-DE"),{"Base Code", "Variant"},Combiner.CombineTextByDelimiter("-", QuoteStyle.None),"Combined") in #"Merged Columns"
- Michael ColwellFeb 19, 2018Copper Contributor
Hi Detlef,
Thank you for the reply. I "attempted" to do as you outlined but ran into an error.
I'm just not that familiar with Excel, especially the table query and data dunctions etc.
I'll work away at this, but wanted to than you for your time and knowledge, it was much appreciated.
It will takle me a while as I'm coming from a limited Excel background and don't want to use up your time with fundamental questions that I need to go away and learn myself.
Thanks & Regards,
Michael.