Understanding an IIf statement

grampygrumpy

New Member
Joined
Jan 30, 2017
Messages
9
Appreciate someone explaining the following formula. Thank you
ExclusionSW: IIf(([CallType] Like "Insurance*") And ([CallType2] Is Null),1,IIf(([CallType] Like "ChgOrder*") And ([ProductLine] Is Null),1,0))
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
If field name "CallType" has a record Insurance plus something else and field name "CallType2" for the same record is Null then the value will be the number 1, however if
field name "CallType" has a record ChgOrder plus something else and the field name ProductLine for the same record is Null then the value will be the number 1. If neither of these assumptions are true then the value will be zero. The asterisk
 
Upvote 0
... the asterisk is a wildcard.

EDIT: PC shut down before I was able to finish.
 
Upvote 0
Cross posted at: Decode an IIf query

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,255
Members
448,556
Latest member
peterhess2002

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