If Formula With Multiple Conditions

Treesh1994

New Member
Joined
Aug 15, 2023
Messages
45
Office Version
  1. 2019
Platform
  1. Windows
I have this formula that is currently working, but I need to add one more section to it.

The Formula is

=IF(H26="","",IF(OR(H26={"99B","Deduct Front Cage","Deduct Rear Cage","Deduct Gun Mount","Deduct Seat","Deduct Window Guards","Deduct Console","Deduct Cupholder","Deduct Armrest","Deduct Swing Arm","Deduct Side Pole","Deduct Grille Lights"}),-AT$1,AT$1*(1+OR(H26={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW","EMPS2STS5RBW","ELUC3H010W","PLUCTCL1","EMPS1STS1W","EMPS1QMS4RBW","VTX609C","VTXADAPT","I3JC"}))))

I need to add an additional statement which is if the text contains "PMP2BKDGAJ" it needs to be multiplied by 4.

Any help would be greatly appreciated!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I need to add an additional statement which is if the text contains "PMP2BKDGAJ" it needs to be multiplied by 4.
Try this and revert -

Excel Formula:
=IFS(H26="","",
Iferror(Search("PMP2BKDGAJ",H26),0)>=1,AT$1*4,
OR(H26={"99B","Deduct Front Cage","Deduct Rear Cage","Deduct Gun Mount","Deduct Seat","Deduct Window Guards","Deduct Console","Deduct Cupholder","Deduct Armrest","Deduct Swing Arm","Deduct Side Pole","Deduct Grille Lights"}),-AT$1,
True,
AT$1*(1+OR(H26={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW","EMPS2STS5RBW","ELUC3H010W","PLUCTCL1","EMPS1STS1W","EMPS1QMS4RBW","VTX609C","VTXADAPT","I3JC"})))
 
Upvote 0
Solution
Try this and revert -

Excel Formula:
=IFS(H26="","",
Iferror(Search("PMP2BKDGAJ",H26),0)>=1,AT$1*4,
OR(H26={"99B","Deduct Front Cage","Deduct Rear Cage","Deduct Gun Mount","Deduct Seat","Deduct Window Guards","Deduct Console","Deduct Cupholder","Deduct Armrest","Deduct Swing Arm","Deduct Side Pole","Deduct Grille Lights"}),-AT$1,
True,
AT$1*(1+OR(H26={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW","EMPS2STS5RBW","ELUC3H010W","PLUCTCL1","EMPS1STS1W","EMPS1QMS4RBW","VTX609C","VTXADAPT","I3JC"})))
Yes,

That did work!

Thank you so much for your help on this!
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,127
Members
452,381
Latest member
Nova88

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