Portfolio Analyzer - Trapping #NUM! (division by zero) error

J

Jason-W

Hi,

I'm using MSP Server 2003. I've made a calculated field
for one of my portfolio analyzer views. One of the
calculations does division and occassionally run into a
division by zero.

My question: How do I trap division by zero? I'ld like to
have it a value of zero instead of the #NUM! error.

Thanks,
Jason
 
J

JackD

Modify your calculated field.
You can use a switch or an iif statement.

for example

iif([cost] = 0, "0", [duration]/[cost])

-Jack
 
J

JackD

Modify your calculated field.
You can use a switch or an iif statement.

for example

iif([cost] = 0, "0", [duration]/[cost])

-Jack
 
J

Jason-W

Thanks :)

--Jason
-----Original Message-----
Modify your calculated field.
You can use a switch or an iif statement.

for example

iif([cost] = 0, "0", [duration]/[cost])

-Jack


Jason-W said:
Hi,

I'm using MSP Server 2003. I've made a calculated field
for one of my portfolio analyzer views. One of the
calculations does division and occassionally run into a
division by zero.

My question: How do I trap division by zero? I'ld like to
have it a value of zero instead of the #NUM! error.

Thanks,
Jason



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top