
- 加为好友
- 发送私信
- 在线聊天
|
| 发表于:2008-05-05 02:48:564楼 得分:0 |
我现在手头没有 Excel,但是我可以提供一个思路。 假设A1是courseware('7112','3') 在B1输入 =Replace(A1,1,12,"courseware.php?id=")就可以转换成courseware.php?id=7112','3') 对于得出的这个字符,我们可以用Find找出 ','的位置 =Find(",",Replace(A1,1,12,"courseware.php?id=")) 找出这个位置干嘛用呢,用Left 函数取','之前的部分 =Left(Replace(A1,1,12,"courseware.php?id="),(Find(",",Replace(A1,1,12,"courseware.php?id="))-2) 然后就可以得出courseware.php?id=7112 至于3,可以用Right函数得出 Left(right(A1,3),1) 然后再把中间的字符连接上 =Left(Replace(A1,1,12,"courseware.php?id="),(Find(",",Replace(A1,1,12,"courseware.php?id="))-2) & "&type=" & Left(right(A1,3),1) | | |
修改
删除
举报
引用
回复
| |