[英]How do I add/replace a value in column B if column A contains the searched word
I want to do the following using Excel :我想使用 Excel 执行以下操作:
In column AX
it have a long description, and I want to find the text 5.0-Rated.png
from it, and then add 5.0 out of 5.0 stars
to column AY
which currently have the values of 0.在AX
列中,它有很长的描述,我想从中找到文本5.0-Rated.png
,然后将5.0 out of 5.0 stars
添加到AY
列,当前值为 0。
I want to add that to the whole column.我想将其添加到整个专栏中。
Thanks.谢谢。
This should do the trick, place in AY1
and drag down as you like这应该可以解决问题,放置在AY1
并根据需要向下拖动
=MID(AX1,SEARCH("?.?-rated.png",AX1),3)&" out of 5.0 stars"
#VALUE!
注意:它会抛出一个#VALUE!
error if there is no such filename in the string.
如果字符串中没有这样的文件名,则会出错。
You can avoid that by wrapping the whole formula in an IFERROR
function like this:
您可以通过将整个公式包装在一个IFERROR
函数中来避免这种情况,如下所示:
=IFERROR(MID(AX1,SEARCH("?.?-rated.png",AX1),3)&" out of 5.0 stars","")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.