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
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
663 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
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

829 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