Nested IF formula construction

Jon Johny

Board Regular
Joined
Sep 15, 2008
Messages
162
I need some help with constructing a formula. This is what I have:

=IF((AND(G22="Strong Positive",I22="Positive")),"Moved Up",(IF((AND(G22="Strong Positive",I22="New")),"New Report"),(IF((AND(G22="Positive",I22="Promising")),"Moved Up",(IF((AND(G22="Promising",I22="Caution")),"Moved Up",IF(G22="Caution","Moved Down",(IF(G22=I22,"No Movement",(IF(G22="New","New Report")))))))))))

I don't know why it doesnt work, but essentially I want to create a nested IF(AND formula which translates to the following:

  • If G22 is "Strong Positive" and I22 is "Positive", then make cell "Moved Up",
  • Otherwise, If G22 is "Strong Positive" and I22 is "New", then make cell "New Report",
  • Otherwise, If G22 is "Positive" and I22 is "Promising", then make cell "Moved Up",
  • Otherwise, If G22 is "Promising" and I22 is "Caution", then make cell "Moved Up",
  • Otherwise, If G22 is "Catuion" then make cell "Moved Down",
  • Otherwise, If G22=I22 then make cell "No Movement",
  • Otherwise, If G22 is "New" then make cell "New Report".
Any help appreciated, thank you.
 
This works for many of your combinations, although not quite all of them - see if you can fix the outstanding one yourself.

Are there other possible permutations that are not addressed by this ?

Code:
=IF(AND(G22="Strong Positive",I22="Positive"),"Moved Up",
IF(AND(G22="Strong Positive",I22="New"),"New Report",
IF(AND(G22="Positive",I22="Promising"),"Moved Up",
IF(AND(G22="Promising",I22="Caution"),"Moved Up",
IF(G22="Caution","Moved Down",IF(G22=I22,"No Movement",
IF(G22="New","New Report","")))))))
 
Upvote 0
Im not really sure, which condition the formula doesnt work for?

Can you tell me and I can try to work it out, thanks.
 
Upvote 0
hmm, on second thoughts, maybe it does work for all of them. I thought there was one condition that didn't match exactly what you wanted, but I can't find it now.

What do you think ? Does it do what you want ?
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top