Forum Discussion
trvincent
Aug 19, 2021Copper Contributor
Combine two lists into one to create a course enrolment csv
Hi I regularly need to create a simple csv list to enrol users onto courses on our VLE. The csv needs to have: CourseCode,UserName I have CourseCode and UserName in separate tables. See example fi...
- Aug 20, 2021
Easiest way id with Power Query, but since you are on Mac that doesn't work. Half-manual way
- create another table with only one empty row in it
add two formulas in columns of this row
=INDEX(Table1[CourseCode], INT( (ROW()-ROW(Table5[[#Headers],[CourceCode]])-1)/ROWS(Table2))+1)
and
=INDEX(Table2[UserName], MOD( ROW()-ROW(Table5[[#Headers],[UserName]])-1, ROWS(Table2))+1)
Number to the right calculates which will be last row. In our case enter H5:I88 into name box, this range will be select.
Ctrl+D. Table will be expanded and filled.
mahmoudarafa
Aug 19, 2021Copper Contributor
Hi trvincent,
it's very simple, just use &, for example =A2&B2, if you want to add ; between CourseCode and UserName it will be like this =A2&";"&B2
it's very simple, just use &, for example =A2&B2, if you want to add ; between CourseCode and UserName it will be like this =A2&";"&B2
trvincent
Aug 19, 2021Copper Contributor
Thanks very much for your helpful and swift response.