英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论