Forumla Error

phimz196

New Member
Joined
Oct 6, 2004
Messages
42
=IIf([Tot_Auth]>1000000,"Tier 1",IIf(([Tot_Auth]>=149000) And ([Tot_Auth]<=1000000),"Tier 2",IIf(([Tot_Auth]>=500) And ([Tot_Auth]<=149000)","Tier 3","< 500")))


This forumla is giving me a invalid syntax error. Can anybody see what i am doing wrong.

Thanks,

Aaron
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
=IIf([Tot_Auth]>1000000,"Tier 1",IIf(([Tot_Auth]>=149000) And ([Tot_Auth]<=1000000),"Tier 2",IIf(([Tot_Auth]>=500) And ([Tot_Auth]<=149000)","Tier 3","< 500")))

Right at the end of your statement, you have a double quote before the comma, just before the quote of Tier 3. Remove that first double quote before the comma.

By the way, do you really need the <=XXX portions? You have already taken care of that portion of your question. The only way you can get to the question "Tot_Auth>=149000" is if Tot_Auth IS less than 1000000, so why ask the question again?
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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