POWERQUERY: Concatenate multiple column rows and copy into columns

excelno

New Member
Joined
Jun 27, 2015
Messages
27
I have an excel file of 700 rows . I would like to create a "key" column by concatenating "Employee number plus date" in Power query.

Input file
=======

"Emp Number....... Date1......... Date 2 ......... Date 3..... Date n"
========================================
" 1234.................. 01/01/2015....04/23/2015...09/23/2015 "


Output File
=======
"Key ............................ Emp Number......Date1...............Date 2....... Date 3..... Date n"
======================================================
123401/01/2015........... 1234............... 01/01/2015.......04/23/2015... 09/23/2015 "
123404/23/2015........... 1234 ........... 01/01/2015..... 04/23/2015 ..... 09/23/2015 "
123404/23/2015........... 1234 ........... 01/01/2015.... 04/23/2015 ...... 09/23/2015 "
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
How shall this logic work? First line in your Output file combines the Emp Number with Date 1, second with Date 2 but third again with date 2 (instead of date 3)?
Do the 3 lines of your Output file all belong to the first line of your Input file or (and then should be iterated through to n,) or will the Output file has the same number of rows like the Input file?
 
Upvote 0

Forum statistics

Threads
1,224,122
Messages
6,176,503
Members
452,733
Latest member
Gao87

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