MS Access 2013

I would like to know what formula I can use in Query calculated field for the attach example.
I would like to use  the formula where it will give me Calculated field result. "iif Status column has "N/A" then 0 otherwise give me number in the status field".

ID   Name     Status     Calculated field
12  John        100              100
13  Chris        N/A               0
14  Mathe    345               345
15  Sam        N/A              0
snhandleAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Priya SudharsanProgrammer AnalystCommented:
Refer the attached excel sheet. Just click on the "Calculated field" and see the formula.
Example.xlsx
0
Rgonzo1971Commented:
Hi,

Supposing Status is a text field

pls try

IIf([Status]="N/A";"0";[Status])

Or

IIf([Status]="N/A";0;[Status]*1)

Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kelvin SparksCommented:
If you need a numeric output

IIf([Status] Is Null, 0, CInt([Status])) if the remaining values are integers,. Replace CInt with CLng if the numbers can exceeed 32767, or use CDbl if you want decimals or really large numbers.


Kelvin
0
Gustav BrockCIOCommented:
I would use:

=IIf(IsNumeric([Status]),[Status],0)

/gustav
0
snhandleAuthor Commented:
Good
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.