Proper use of IF( AND( OR(

dgardnerman

Board Regular
Joined
Jul 17, 2014
Messages
73
I have a monster of a syntax and I can't figure out how to incorporate the function below into the existing string.

I want U24 to calculate SUM(S24,T24)*P24*E24 IF("DECKING" populates G24

Here is the syntax:

[FONT=&quot]=IFERROR(IF(AND(E24=0,R24=0,T24=0),"",IF(AND(A24="x",OR(G24={"Plug","bolt","grating","studs-thd","studs-hdd","deformbars","allthrd","rebar"})),SUM(S24,T24)*E24,IF(AND(A24="x",OR(G24={"Angle","Bar","WF","Channel","Hss","Pipe","Plate"})),(R24*T24),""))),"")

Here is the spreadsheet for reference (turn on objects to see drop-downs):

https://www.dropbox.com/s/85z3rqub1563rn5/2 - Template In Progress.xlsx?dl=0

[/FONT]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I have a monster of a syntax and I can't figure out how to incorporate the function below into the existing string.

I want U24 to calculate SUM(S24,T24)*P24*E24 IF("DECKING" populates G24

Here is the syntax:

=IFERROR(IF(AND(E24=0,R24=0,T24=0),"",IF(AND(A24="x",OR(G24={"Plug","bolt","grating","studs-thd","studs-hdd","deformbars","allthrd","rebar"})),SUM(S24,T24)*E24,IF(AND(A24="x",OR(G24={"Angle","Bar","WF","Channel","Hss","Pipe","Plate"})),(R24*T24),""))),"")

Here is the spreadsheet for reference (turn on objects to see drop-downs):

https://www.dropbox.com/s/85z3rqub1563rn5/2 - Template In Progress.xlsx?dl=0



I love it when I can respond to my own posts...
I figured it out...

[FONT=&quot]=IFERROR(IF(AND(E24=0,R24=0,T24=0),"",IF(G24="decking",SUM(S24,T24)*P24,IF(AND(A24="x",OR(G24={"Plug","bolt","grating","studs-thd","studs-hdd","deformbars","allthrd","rebar"})),SUM(S24,T24)*E24,IF(AND(A24="x",OR(G24={"Angle","Bar","WF","Channel","Hss","Pipe","Plate"})),(R24*T24),"")))),"")[/FONT]
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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