I have an excel sheet that looks like the following:
+-----------+------+-----------+------+----------------+
| Average | Life | Age | Life | Age |
+-----------+------+-----------+------+----------------+
| Young | Blah | Young | Blah | Old |
+-----------+------+-----------+------+----------------+
| Young | Blah | Old | Blah | Young |
+-----------+------+-----------+------+----------------+
| Super Old | Blah | Super Old | Blah | Should Be Dead |
+-----------+------+-----------+------+----------------+
Consider the Average column - I want this to get the data from the Age columns (please note that age columns can exist anywhere in the sheet, the alternate representation above is merely for easy visualizing).
I want to encode Young = 0, Old = 1 ... Should Be Dead = 3 and then put an average based on range, like between 0 and 1 (included) = Young etc.
This is easily doable in VBA, but I was wondering is it even possible to do it using a formula?
Thanks!
