Formula building

dgardnerman

Board Regular
Joined
Jul 17, 2014
Messages
73
I need to compile a formula that adds a parameter so that if column G/470 has the word "PLUG" it will multiply E470*O470 along with the current functions. Is this possible? I keep striking out and wasting my time.

I've attached a link to my screenshot and I've inserted my formula below:
=IF(AND(A470="X",E470<>"",O470<>""),O470*M470,"")

BTW...the target cell is P470

https://www.dropbox.com/s/jkrm4ercz1ynqqu/Screen Shot 2018-10-30 at 4.39.50 PM.png?dl=0

Thanks!
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi,

Is this what you mean:


Book1
J
1 
Sheet354
Cell Formulas
RangeFormula
J1=IF(AND(A470="X",E470<>"",O470<>""),IF(G470="Plug",E470,M470)*O470,"")
 
Upvote 0
You people amaze me!! thumbs up! I spent over an hour on that thing and couldn't figure out the syntax language.
Thanks a million!
 
Upvote 0
You're very welcome, glad to help.
 
Upvote 0
just curious, if I wanted to add more names to the formula such as "plug" how would I extend the formula to capture that?
 
Upvote 0
Do you mean other possible values in G470 besides "Plug" ?

And if it's, say, "Jam", then what should be done ?
 
Last edited:
Upvote 0
I want anything I put in there to equal E470,M470)*O470 (same as you had)

=IF(AND(A470="X",E470<>"",O470<>""),IF(G470="Plug" or "jam" or "whatever"",E470,M470)*O470,"")

BTW...G470 is a drop down menu, I want it to perform it's normal function =IF(AND(A474="X",E474<>"",O474<>""),O474*M474,"")

but I need it to incorporate the exclusions....sorry, I think I failed to give you the original string...
I need the original function plus I need to add the if "plug" do this..

Is that as clear as mud? sorry
 
Last edited:
Upvote 0
You can add as many conditions as you need within the curly brackets:


Book1
J
1 
Sheet354
Cell Formulas
RangeFormula
J1=IF(AND(A470="X",E470<>"",O470<>""),IF(OR(G470={"Plug","Jam","Whatever"}),E470,M470)*O470,"")
 
Upvote 0

Forum statistics

Threads
1,223,577
Messages
6,173,163
Members
452,503
Latest member
AM74

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