IF FORMULA, MULTIPLE CONDITIONS WITH TABLE RANGE AND NAMED RANGE

malle7

New Member
Joined
Jul 22, 2015
Messages
5
Hello!! :) I really need you guidance with the following.

In Sheet1 I have a Table Range
In Sheet2 I have Each Column a named range (Name Range: Plant, Name Range: Inco1a, Name Range: Inco1b)

In the image Attached Capture1
Column named "wrong" I have the following formula:
=IF(AND([@Plant]=Plant), OR(ISNUMBER(SEARCH(Inco2a,[@[Inco 2]])),ISNUMBER(SEARCH(Inco2b,[@[Inco 2]])),"ok"),"check")

Column named "right" I have the following formula"
=IF(AND(OR(ISNUMBER(SEARCH("AUBET",[@[Inco 2]])),ISNUMBER(SEARCH("BERR",[@[Inco 2]]))), OR([@Plant]="AAU",[@Plant]="AUU")),"OK",
IF(AND(OR(ISNUMBER(SEARCH("MANCHES",[@[Inco 2]])),ISNUMBER(SEARCH("CARLING",[@[Inco 2]]))), [@Plant]="CTN"),"OK",
IF(AND(OR(ISNUMBER(SEARCH("WESSE",[@[Inco 2]])),ISNUMBER(SEARCH("KOLN",[@[Inco 2]]))), [@Plant]="KLO"),"OK",
IF(AND(ISNUMBER(SEARCH("FRANK", [@[Inco 2]])),[@Plant]="FRN"),"OK",
IF(AND(ISNUMBER(SEARCH("BERL",[@[Inco 2]])),[@Plant]="BEE"),"OK",
IF(AND(ISNUMBER(SEARCH("ANTWE",[@[Inco 2]])),[@Plant]="BEL"),"OK",
IF(AND(ISNUMBER(SEARCH("PLOCK",[@[Inco 2]])),[@Plant]="PLO"),"OK",
"CHECK")))))))

The formula in "right" column gives me the results I want.
Question: How can I make the second formula shorter, using the name ranges or the data in Sheet 2?

THANKING YOU IN ADVANCE FOR YOUR SUPPORT!


Sincerely,


Malle
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    78.9 KB · Views: 6
  • Capture2.PNG
    Capture2.PNG
    28.9 KB · Views: 6

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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