正文
合并函数Combiner.Combine…(Power Query 之 M 语言)
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
按相同分隔符合并:
=Combiner.CombineTextByDelimiter("分隔 符 " , 引号字符 )
分隔符
直接输入
特殊符号
制表符:#(tab)
回车:#(cr)
换行:#(lf)
不间断空格:#(00A0)
引号字符
QuoteStyle.Csv/1:(半角)引号不显示
QuoteStyle.None/0:(半角)引号显示
按不同分隔符依序合并:
= Combiner.CombineTextByEachDelimiter ({ "分隔符 1" ,…, "分隔符n" } , 引号字符 )
按不同字符数合并:
= Combiner.CombineTextByLengths({ 字符数 1 ,...,字符数n } , "空位显示" )
按不同位置合并:
=Combiner.CombineTextByPositions({ 位置 1 ,…, 位置n } , "空位显示" )
后一位置数大于前一位置数
位置数大于原字符串长度时显示空
位置数小于原字符串长度时从右起截断
按指定位置与长度合并:
= Combiner.CombineTextByRanges({{ 位置 1, 长度 1} ,...{位置n,长度n} } , "空位显示" )