Need Help Modifying IF(OR) Formula

PattiK323

New Member
Joined
Jun 12, 2014
Messages
35
CURRENT FORMULA: IFERROR(IF(OR($L9="PSI",$L9="PTC",$L9="PQS",$L9="PST"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," ")

Prioritizes production across all machines the same: PSI, PTC, PQS, PST.

Want to modify formula, to look at cell $D9 first, and based on the machine, prioritize production accordingly, as noted below. How do I write the formula to accomplish this?

IF $D9=”135301”:
IFERROR(IF(OR($L9="PTC",$L9="PST"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," ")

[only want to prioritize PTC and PST]


IF $D9=”135302”:
IFERROR(IF(OR($L9="PST"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," ")

[only want to prioritize PST]



IF $D9=”135303”:

IFERROR(IF(OR($L9="PTC",$L9="PQS"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," ")

[only want to prioritize PTC and PQS]


IF $D9=”135304”:
IFERROR(IF(OR($L9="PSI",$L9="PQS"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," ")

[only want to prioritize PSI and PQS]

THANK YOU!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
This?
Book1
A
9No Condition Met
aliaslamy2k
Cell Formulas
RangeFormula
A9A9=IF($D9="135301",IFERROR(IF(OR($L9="PTC",$L9="PST"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," "),IF($D9="135302",IFERROR(IF(OR($L9="PST"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," "),IF($D9="135303",IFERROR(IF(OR($L9="PTC",$L9="PQS"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," "),IF($D9="135304",IFERROR(IF(OR($L9="PSI",$L9="PQS"),S9,(VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9))," "),"No Condition Met"))))
 
Upvote 0
I think that this should do what you need

=IFERROR(IF(OR(SEARCH($D9,"PSIPTCPQSPST")=INDEX({10,10,7,7;4,10,4,1},0,--RIGHT($L9))),S9,VLOOKUP(CONCATENATE($C9," Balance % By Month"),$AC$1:$AP$4,5,FALSE)*$AC9),"")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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