Solved

When ever the my expression returns a zero, the column cell read Nan,  how can I fix this?

Posted on 2011-02-28
2
679 Views
Last Modified: 2012-06-27
In a report I have an expression in Col A.
colA expression
= sum(colB)/sum(ColC)
This works.

However, wherever there is a zero after the expression runs,  colA returns Nan.

What is the best way to eliminate this problem?
0
Comment
Question by:rhservan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
derekkromm earned 500 total points
ID: 34997199
try this:

Iif(ISNOTHING(sum(colB)/sum(colC), 0, sum(colB)/sum(colC))
0
 

Expert Comment

by:CPA_MCSE
ID: 35155918
THE ACCEPTED SOLUTION IS WRONG.

THE CORRECT SOLUTION IS:

Iif(ISNOTHING(sum(colB)), 0, sum(colB)/sum(colC))

If colB is blank or not there, it will return a 0 instead.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question