如何在excel中输出两个单元格的值?
我有两列,old_name和new_name。
我正在试图把这两个专栏的基础上的命令放在一起。 所以我想输出到另一个单元格,也许C2:
replace [contents of old_name] [contents of new_name]
我怎样才能完成这个任务?
我似乎不能简单地input:
replace =A2 =B2
也不
replace =CELL("contents", A2) =CELL("contents", B2) -------------------------------------------------- | A | B | -------------------------------------------------- | 1 | old_name | new_name | -------------------------------------------------- | 2 | filename1.txt | filename2.txt | --------------------------------------------------
预期产出:
replace filename1.txt filename2.txt
你需要这个公式:
="replace "&A2&" "&B2
如果我正确理解你的问题 – 所有关于连接
连接你可以合并多个单元格的string的内容,并添加更多的数据之间的“”,“,”分离值
如果A1将有 – “爸爸”和A2将有“伟大”,你可以写在A3 = CONCATENATE(A1,“是”,A2),代码的结果将是“爸爸是伟大的”
所以你的请求的答案是= concatenate(“replace”,A1,“”,A2)
这是你的意思吗 ?