Dropdown text to number for calculations, VLOOKUP error
The setup is as follows:
Column A contains the name of the item, B contains a total amount of the item, C contains the types and numbers of containers that item is stored in, D is the column in which I need the dropdown as there are multiple different types of containers with different properties, Column E is where I would like the associated value with the dropdown to enter such that when I select "Hotel Pan" it returns 3 or "6 pan" it returns 0.25 and so on. And Column F is where I need the calculation to run to return a final result. e.g. B2-(C2xD2).
The Issue:
I'm have a table where one column is a dropdown menu where the options are text or a "string" and I need it to return numerals such that I can use the information for calculations. I have tried creating a new table with the reference data and writing a VLOOKUP function but I get the error "The formula contains an invalid reference." but it doesn't show what the invalid reference is.
It appears that there is no actual way to have a cell contain a string but return numerals when referenced in calculations so I have the cell with the dropdown returning numbers in the column next to it and I'm using that column to create the calculation function to return my end result but it's not working.