wordperfectconvert
Technical User
I have an excel spreadsheet where the person enters sex (male or female) in B2, the date of birth in B3, and B4 calculates the age at last birthday. I want b5 to say somethine like "If B2 is Male and age is 47, then B5 (life expectancy) is 28.45". I could do this with an If formula, but only for 7 options.
I am trying to write VBA code for the cell because I will have 160 options (Male age 1-80, and Female 1-80). I am open to any suggestions. Thanks.
I am trying to write VBA code for the cell because I will have 160 options (Male age 1-80, and Female 1-80). I am open to any suggestions. Thanks.