Wanting To Add More Text To A IF Formula

Treesh1994

New Member
Joined
Aug 15, 2023
Messages
45
Office Version
  1. 2019
Platform
  1. Windows
I would like to add more texts after "99B" but I keep getting #Spill.

Here is the formula that I am using that is currently working

=IF(H22="","",IF(H22="99B",-AT$1,AT$1*(1+OR(H22={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW","EMPS2STS5RBW","ELUC3H010W","PLUCTCL1","PMP2BKDGAJ","EMPS1STS1W","EMPS1QMS4RBW","VTX609C","VTXADAPT","I3JC"}))))

I have other options after the "99B" such as "Deduct Front Cage", "Deduct Rear Cage" Ect.

The only way I found so far is to keep repeating IF(H22="99B",-AT$1*AT$1,IF(H22="Deduct Front Cage",-AT$1*AT$1,IF(H22="Deduct Rear Cage",-AT$1*AT$1

I am trying to see if there is a better way to do this. Also each item has the word "Deduct" not sure if this helps making a formula based on a contained word

Any help would be greatly appreciated!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Is it what you need?

Excel Formula:
=IF(H22="","",IF(OR(H22={"99B","Deduct Front Cage","Deduct Rear Cage"}),-AT$1,AT$1*(1+OR(H22={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW","EMPS2STS5RBW","ELUC3H010W","PLUCTCL1","PMP2BKDGAJ","EMPS1STS1W","EMPS1QMS4RBW","VTX609C","VTXADAPT","I3JC"}))))
 
Upvote 0
Solution
Is it what you need?

Excel Formula:
=IF(H22="","",IF(OR(H22={"99B","Deduct Front Cage","Deduct Rear Cage"}),-AT$1,AT$1*(1+OR(H22={"ELUC3H010D","EMPS1STS4RBW","EMPS2QMS5RBW","EMPS2STS5RBW","ELUC3H010W","PLUCTCL1","PMP2BKDGAJ","EMPS1STS1W","EMPS1QMS4RBW","VTX609C","VTXADAPT","I3JC"}))))
Yes that is exactly what I am looking for!

Thank you so much!
It appears that I didn't include the extra "",!

I appreciate your help!
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,126
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