What can be wrong with my formula?

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
Take a look below, what could be wrong with my calculated field? When it tries to run it highlights the first AND. Its says the expression contains an invalid syntax.

Pages:IIF(AND([section]="CLASSIFIED",[description]="inch"),[sumoflinage]/215,IIF(AND([section]="CLASSIFIED",[description]="line"),[sumoflinage]/2795,IIF(AND([section]="display",[description]="inch"),[sumoflinage]/129,0)))

Thanks Parra :x
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
OK I fixed, just in case you are interested in what I did.

Pages: IIf([section]="CLASSIFIED" And [Inches Or Lines].[Description]="inch",([sumoflinage]/215),IIf([section]="CLASSIFIED" And [Inches Or Lines].[Description]="line",([sumoflinage]/2795),IIf([section]="display" And [Inches Or Lines].[Description]="inch",([sumoflinage]/129),0)))
:biggrin: :biggrin: :biggrin: :biggrin:
 
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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