Okay One More: IIF(And(IsNull

bthomas

Board Regular
Joined
Mar 4, 2008
Messages
139
How do you use IIF(And(IsNull together?

Here is the formula I am trying to create:

Zone!: IIF(And(IsNull([Zone]),IsNull([Opportunity]),"Zone!",""))))

What am I doing wrong? I can't seem to figure it out.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
The And should go there.

Zone!: IIF(IsNull([Zone]) And IsNull([Opportunity]),"Zone!","")
 
Upvote 0
Why not take a look at the Nz function?
 
Upvote 0
The NZ function will convert a Null value into a value of your choosing.

If is quite useful when you are doing Outer Joins, and the field you are pulling back might not exist because there is no match. So, if you have a formula like this:

NZ([Field1],"No match")

it will return the value of Field1, if it exists. If it doesn't, it will return "No Match".
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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