Tex to number

Occasional Visitor
Good day!
I can't find a formula that converts a text to a number, for example if in a cell it says "always" I want the number 4 to appear right away and if in that cell it says "almost always" that 3 appears in the next cell, that is, change the value according to the word in another cell. Is there a formula like that?
1 Reply


Create a small lookup table, with the descriptions in the first column and the corresponding number in the second column You can then use VLOOKUP:




The formula in H2 is




This can be filled down.