如何根据excel中另一列中的值替换字符串中的值

时间:2016-08-23 14:07:12

标签: excel

enter image description here

我想用B列中的相应值替换B列中的'AA'。我怎样才能实现这一点。我正在寻找以下结果:

var ObjectID = require('mongodb').ObjectID;
router.route('/deletequestion')
    .delete(function (req, res) {
    console.log(req.body._id);
    const _id = new ObjectID(req.body._id);
    Question.collection.deleteOne({_id:_id},function(err,question){
        if(err) throw err;
        console.log('the document is deleted')
        res.send(question);

    });

})

1 个答案:

答案 0 :(得分:0)

在单元格C1中使用此公式并将其复制下来:

=SUBSTITUTE(B1,"AA",A1)

查看SUBSTITUTE function了解详情。

此答案最初由@tigeravatar发布为comment:随时将此答案重新发布为您自己的答案,并留下评论,以便我删除此副本。 questions with no answers, but issue solved in the comments已经规定了这种答案。