|
看到过一个贴,
case 列 有 一个单号 ,
name列有多个用户名 ,他们用 ; 分隔。如图表一
需要把name列用户分拆出来,并与case号相对应,如图表二
其中有一位回帖对case列处理用了下面函数。(详见附件的sheet3)
=IF(SUM(LEN(Sheet1!$B$3:$B$7)-LEN(SUBSTITUTE(Sheet1!$B$3:$B$7,";",))+1)>=ROW(A1),LOOKUP(ROW(A1)-1,MMULT(N(ROW($1:$5)>COLUMN(A:E)),LEN(Sheet1!$B$3:$B$7)-LEN(SUBSTITUTE(Sheet1!$B$3:$B$7,";",))+1),Sheet1!$A$3:$A$7),"")
在学习这个函数时候,我始终不理解这段函数的用意。
LOOKUP(ROW(A1)-1,MMULT(N(ROW($1:$5)>COLUMN(A:E)),LEN(Sheet1!$B$3:$B$7)-LEN(SUBSTITUTE(Sheet1!$B$3:$B$7,";",))+1),Sheet1!$A$3:$A$7),"")
特别是这段的用意没理解。请各位指点迷津,谢谢。
MMULT(N(ROW($1:$5)>COLUMN(A:E)),LEN(Sheet1!$B$3:$B$7)-LEN(SUBSTITUTE(Sheet1!$B$3:$B$7,";",))+1)
图表1
case | name | 2005G02717 CN | Lou, Wenqing; Pan, Bangyan; Tang, Dayong; Xu, Yingxue | 2006G00029 CN | Feng, Junhong; Zhou, Xiaotian; Zhu, Qiwu; Zhu, Weizhong | 2006G00434 CN | Feng, Junhong; Zhou, Xiaotian; Zhu, Qiwu; Zhu, Weizhong | 2006G01159 CN | Feng, Junhong; Suan, Zongquan; Zhou, Xiaotian | 2006G01161 CN | Feng, Junhong; Suan, Zongquan; Zhou, Xiaotian | | | 图表2 | | case | name | 2005G02717 CN | Lou, Wenqing | 2005G02717 CN | Pan, Bangyan | 2005G02717 CN | Tang, Dayong | 2005G02717 CN | Xu, Yingxue | 2006G00029 CN | Feng, Junhong | 2006G00029 CN | Zhou, Xiaotian | 2006G00029 CN | Zhu, Qiwu | 2006G00029 CN | Zhu, Weizho |
|
|
|
|