Hi everyone,
This is my first post and I should say that I have never had any excel training, I have just picked it up as I go along, primarily from reading this forum. Unfortunately this means thee are some pretty big gaps in my knowledge, so there are complex things I can do and simple ones I can't.
I am trying to create a spreadsheet that will automatically calculate hearing loss by age and sex and I have got the spreadsheet working perfectly for men, using the following code
=HLOOKUP(K7,'MTables'!C6:O9,IF(K8='MTables'!B7,2,IF(K8='MTables'!B8,3,4)))
MTables are values for men sorted by various factors. I also have similar tables for women called FTables
what I want to do now is add a cell where I input the sex and select the Table accordingly. I have tried doing it with IF statements but all of them result in a ridiculously long argument and don't work.
I am sure someone out there can see a simple way out of this and I am looking forward to slapping my forehead and saying 'D'OH!
Thanks in advance to everyone.
This is my first post and I should say that I have never had any excel training, I have just picked it up as I go along, primarily from reading this forum. Unfortunately this means thee are some pretty big gaps in my knowledge, so there are complex things I can do and simple ones I can't.
I am trying to create a spreadsheet that will automatically calculate hearing loss by age and sex and I have got the spreadsheet working perfectly for men, using the following code
=HLOOKUP(K7,'MTables'!C6:O9,IF(K8='MTables'!B7,2,IF(K8='MTables'!B8,3,4)))
MTables are values for men sorted by various factors. I also have similar tables for women called FTables
what I want to do now is add a cell where I input the sex and select the Table accordingly. I have tried doing it with IF statements but all of them result in a ridiculously long argument and don't work.
I am sure someone out there can see a simple way out of this and I am looking forward to slapping my forehead and saying 'D'OH!
Thanks in advance to everyone.