如何使Google表格中的单词具有价值?

huangapple go评论73阅读模式
英文:

how do i make it so a word has value in google sheets

问题

我想要Google表格将一个单词识别为数字,例如当我执行=(SUM)A2+B2,而A2是单词'dingus'时,它会认为它是100。它必须以一种方式实现,以便我只需在单元格中输入'dingus',然后在数学问题中使用它,以便Google表格默认情况下会假设它代表100。也就是说,我只需在一个单元格中写入dingus,然后在数学问题中引用它,并使dingus成为一个有效的数字,其值默认为100。

英文:

I would like for google sheets to recognise a word as a number such as when I do =(SUM)A2+B2 and A2 is the word 'dingus' for it to think it is 100. It must be in a way where I can just put 'dingus' in a cell and use that in a math problem, for google sheets to just assume it means 100. Ie, I just write dingus in a cell, with another cell refering to it in a math problem, and haveing dingus be a valid number with a value of 100, by default.

答案1

得分: 1

你可以使用VLOOKUP函数。这里是一个带有查找表(列E和F)的电子表格,为每个单词分配一个值。使用VLOOKUP函数(列C),你可以通过引用查找表来添加这些单词。

英文:

You can use VLOOKUP. Here is a spreadsheet with a lookup table (columns E and F) assigning a value to each word. Using VLOOKUP (column C), you can add the words by referencing the lookup table.

huangapple
  • 本文由 发表于 2023年8月4日 21:44:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/76836520.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定