Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Nested And function

I i have more than 7 nested level like the following what can be done?
=IF(AND(F11="Ma",G11="R"),"M",
(IF(AND(F11="Ma",G11="O"),"H",
IF(AND(F11="Ma",G11="F"),"H",
IF(AND(F11="Mo",G11="R"),"L",
IF(AND(F11="Mo",G11="O"),"M",
IF(AND(F11="Mo",G11="F"),"H",
IF(AND(F11="Mi",G11="R"),"L",.....))))))))

Actually i only have 9 level and so i am shortfall of 2 to complete my
formulas.... andyone can help????


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Nested And function

This seemed to work okay for me.

=INDEX({"M","H","H","L","M","H","H","L"},MATCH(F11 &G11,{"MaR","MaO","MaF","MoR","MoO","MoF","MiR"},0 ))

Alternatively, create a table like this

A B
1 MaR M
2 MaO H
3 MaF H

and use VLOOKUP(F11&G11, A1:B3, 2, FALSE)

Change the reference A1:B3 to wherever you put your table.



"Kelvin Pek" wrote:

I i have more than 7 nested level like the following what can be done?
=IF(AND(F11="Ma",G11="R"),"M",
(IF(AND(F11="Ma",G11="O"),"H",
IF(AND(F11="Ma",G11="F"),"H",
IF(AND(F11="Mo",G11="R"),"L",
IF(AND(F11="Mo",G11="O"),"M",
IF(AND(F11="Mo",G11="F"),"H",
IF(AND(F11="Mi",G11="R"),"L",.....))))))))

Actually i only have 9 level and so i am shortfall of 2 to complete my
formulas.... andyone can help????


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Nested And function

Thanks Pal

Regards
Kelvin Pek

"JMB" wrote:

This seemed to work okay for me.

=INDEX({"M","H","H","L","M","H","H","L"},MATCH(F11 &G11,{"MaR","MaO","MaF","MoR","MoO","MoF","MiR"},0 ))

Alternatively, create a table like this

A B
1 MaR M
2 MaO H
3 MaF H

and use VLOOKUP(F11&G11, A1:B3, 2, FALSE)

Change the reference A1:B3 to wherever you put your table.



"Kelvin Pek" wrote:

I i have more than 7 nested level like the following what can be done?
=IF(AND(F11="Ma",G11="R"),"M",
(IF(AND(F11="Ma",G11="O"),"H",
IF(AND(F11="Ma",G11="F"),"H",
IF(AND(F11="Mo",G11="R"),"L",
IF(AND(F11="Mo",G11="O"),"M",
IF(AND(F11="Mo",G11="F"),"H",
IF(AND(F11="Mi",G11="R"),"L",.....))))))))

Actually i only have 9 level and so i am shortfall of 2 to complete my
formulas.... andyone can help????


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Nested And function

You're welcome.

"Kelvin Pek" wrote:

Thanks Pal

Regards
Kelvin Pek

"JMB" wrote:

This seemed to work okay for me.

=INDEX({"M","H","H","L","M","H","H","L"},MATCH(F11 &G11,{"MaR","MaO","MaF","MoR","MoO","MoF","MiR"},0 ))

Alternatively, create a table like this

A B
1 MaR M
2 MaO H
3 MaF H

and use VLOOKUP(F11&G11, A1:B3, 2, FALSE)

Change the reference A1:B3 to wherever you put your table.



"Kelvin Pek" wrote:

I i have more than 7 nested level like the following what can be done?
=IF(AND(F11="Ma",G11="R"),"M",
(IF(AND(F11="Ma",G11="O"),"H",
IF(AND(F11="Ma",G11="F"),"H",
IF(AND(F11="Mo",G11="R"),"L",
IF(AND(F11="Mo",G11="O"),"M",
IF(AND(F11="Mo",G11="F"),"H",
IF(AND(F11="Mi",G11="R"),"L",.....))))))))

Actually i only have 9 level and so i am shortfall of 2 to complete my
formulas.... andyone can help????


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF Function Marco Margaritelli Excel Worksheet Functions 7 July 31st 06 07:54 AM
Problem with nested if function. PLS HELP sfar007 Excel Worksheet Functions 2 June 6th 06 11:34 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Nested IF Function and VLookup Alternatives robert.holmes Excel Worksheet Functions 1 December 12th 05 10:28 PM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM


All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"