A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multiple IF function



 
 
Thread Tools Display Modes
  #1  
Old March 13th, 2010, 02:09 PM posted to microsoft.public.excel.worksheet.functions
Anthony
external usenet poster
 
Posts: 356
Default Multiple IF function

Hi,

I'm trying to create a Life Insurance Calculator within Excel. I've already
done a VLOOKUP to get the Relevant Premium Rate, but now I need to be able to
reference back to them given the option. The four options available a
1. Male Non-Smoker
2. Male Smoker
3. Female Non-Smoker
4. Female Smoker

For example:
1. If Male AND a Non-Smoker, I want to refer to Cell A1
2. If Male AND a Smoker, I want to refer to Cell A2
3. If Female AND a Non-Smoker, I want to refer to Cell A3
4. If Female AND a Smoker, I want to refer to Cell A4

Any help is much appreciated.

Thanks

  #2  
Old March 13th, 2010, 02:52 PM posted to microsoft.public.excel.worksheet.functions
Don Guillett[_2_]
external usenet poster
 
Posts: 607
Default Multiple IF function

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Anthony" wrote in message
...
Hi,

I'm trying to create a Life Insurance Calculator within Excel. I've
already
done a VLOOKUP to get the Relevant Premium Rate, but now I need to be able
to
reference back to them given the option. The four options available a
1. Male Non-Smoker
2. Male Smoker
3. Female Non-Smoker
4. Female Smoker

For example:
1. If Male AND a Non-Smoker, I want to refer to Cell A1
2. If Male AND a Smoker, I want to refer to Cell A2
3. If Female AND a Non-Smoker, I want to refer to Cell A3
4. If Female AND a Smoker, I want to refer to Cell A4

Any help is much appreciated.

Thanks


  #3  
Old March 13th, 2010, 03:20 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Multiple IF function

How about

=INDEX(A1:A4,MATCH(selected_option,option_cells,0) )

--

HTH

Bob

"Anthony" wrote in message
...
Hi,

I'm trying to create a Life Insurance Calculator within Excel. I've
already
done a VLOOKUP to get the Relevant Premium Rate, but now I need to be able
to
reference back to them given the option. The four options available a
1. Male Non-Smoker
2. Male Smoker
3. Female Non-Smoker
4. Female Smoker

For example:
1. If Male AND a Non-Smoker, I want to refer to Cell A1
2. If Male AND a Smoker, I want to refer to Cell A2
3. If Female AND a Non-Smoker, I want to refer to Cell A3
4. If Female AND a Smoker, I want to refer to Cell A4

Any help is much appreciated.

Thanks



  #5  
Old March 13th, 2010, 04:21 PM posted to microsoft.public.excel.worksheet.functions
Anthony
external usenet poster
 
Posts: 356
Default Multiple IF function

Thanks guys,

I've spent the last few hours working on this and I figured it out! My
formula as follows:

=IF($B$3="Male", IF($B$4="Non-Smoker", 'Premium Rate Table'!L4, 'Premium
Rate Table'!L5), IF($B$3="Female", IF($B$4="Non-Smoker",'Premium Rate
Table'!L6,'Premium Rate Table'!L7)))

B3 = Drop down list where you can choose "Male" or "Female"
B4 = Drop down lise where you can choose "Non-Smoker" or "Smoker"
'Premium Rate Table' = Separate Worksheet with the Premium Rate Tables.
L4 = Male Non-Smoker Premium Rate
L5 = Male Smoker Premium Rate
L6 = Female Non-Smoker Premium Rate
L7 = Female Smoker Premium Rate
The L# fields already have a VLOOKUP formula to obtain the correct Premium
Rate when the relevant Age is entered.

Thanks for your responses anyway.

Anthony
  #6  
Old March 13th, 2010, 05:01 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Multiple IF function

You didn't exactly help us to help you did you? Your original post gave
nothing that suggested that the option was split over two cells.

You can simplify your formula to

=IF($B$3="Male",IF($B$4="Non-Smoker",'Premium Rate Table'!L4,'Premium Rate
Table'!L5),
IF($B$4="Non-Smoker",'Premium Rate Table'!L6,'Premium Rate Table'!L7))

--

HTH

Bob

"Anthony" wrote in message
news
Thanks guys,

I've spent the last few hours working on this and I figured it out! My
formula as follows:

=IF($B$3="Male", IF($B$4="Non-Smoker", 'Premium Rate Table'!L4, 'Premium
Rate Table'!L5), IF($B$3="Female", IF($B$4="Non-Smoker",'Premium Rate
Table'!L6,'Premium Rate Table'!L7)))

B3 = Drop down list where you can choose "Male" or "Female"
B4 = Drop down lise where you can choose "Non-Smoker" or "Smoker"
'Premium Rate Table' = Separate Worksheet with the Premium Rate Tables.
L4 = Male Non-Smoker Premium Rate
L5 = Male Smoker Premium Rate
L6 = Female Non-Smoker Premium Rate
L7 = Female Smoker Premium Rate
The L# fields already have a VLOOKUP formula to obtain the correct Premium
Rate when the relevant Age is entered.

Thanks for your responses anyway.

Anthony



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.