Hello Forum,
I'm struggling with a nested formula that uses several IF statements and two IF(AND) statements. The formula is shown below. The error message I receive is "The specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format". The two IF(AND statements at the end worked fine with just the two of them. I thought Excel could handle many more levels of nesting than just this? At the end of the formula, cells K12 and K13 refer to locations as in the IF statements that precede them.
Can anyone please tell me what I'm doing wrong here? I'm sure it's something simple that I'm overlooking - I'm just not very good at multiple nesting in a formula. Your help is greatly appreciated!
=IF(H2="Gala","Oregon",IF(H2="Jazz","Maine",IF(H2="Golden Delicious","California",IF(H2="Granny Smith","Washington",IF(H2="Braeburn","Florida",IF(H2="Lady","Idaho",IF(H2="Gravenstein","New York",IF(AND(H2="Honeycrisp",AA2="ILA"),K12,IF(AND(H2="Honeycrisp",AA2="ILD"),K13,"Wrong Value")))))))))
Thank you in advance,
greykitten
I'm struggling with a nested formula that uses several IF statements and two IF(AND) statements. The formula is shown below. The error message I receive is "The specified formula cannot be entered because it uses more levels of nesting than are allowed in the current file format". The two IF(AND statements at the end worked fine with just the two of them. I thought Excel could handle many more levels of nesting than just this? At the end of the formula, cells K12 and K13 refer to locations as in the IF statements that precede them.
Can anyone please tell me what I'm doing wrong here? I'm sure it's something simple that I'm overlooking - I'm just not very good at multiple nesting in a formula. Your help is greatly appreciated!
=IF(H2="Gala","Oregon",IF(H2="Jazz","Maine",IF(H2="Golden Delicious","California",IF(H2="Granny Smith","Washington",IF(H2="Braeburn","Florida",IF(H2="Lady","Idaho",IF(H2="Gravenstein","New York",IF(AND(H2="Honeycrisp",AA2="ILA"),K12,IF(AND(H2="Honeycrisp",AA2="ILD"),K13,"Wrong Value")))))))))
Thank you in advance,
greykitten