Excel Concatenate Rows

后端 未结 3 1228
夕颜
夕颜 2020-12-12 06:18

I have this excel worksheet

A          B          c   
foo1       joo1       loo1
foo1       joo2       loo2
foo2       joo3       loo3
foo2       joo4               


        
3条回答
  •  感动是毒
    2020-12-12 06:50

    Also you could use Salstat2, and the following steps

    1- import the data by using the option open in the file menu

    2- Into the script panel you should write

    # getting the colums
    res= group()
    res.xdata=  [ grid.GetCol('A')]
    res.ydata=  [ grid.GetCol('B'), grid.GetCol('C')]
    res.yvalues= ['concat(B)','concat(C)'] # concat is a function used to concatenate the data
    report.addPage() # adding a new sheet to put the results
    for lis in res.getAsRow():
       report.addRowData( lis) # adding the results row by row
    

    3- more information here

提交回复
热议问题