Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

want to return "n/a" or "0"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
edrachel - 27 Jan 2006 21:30 GMT
Hi,  I am trying to do a formula that will either return a percentage or
if either of two cells are blank, then I want it to return either a "0"
or "n/a".  Here is my formula   =(J5/H5)-100% (this gives me the
recipacal of the percentage).  It works fine.  Now what do I add to get
it to return either "0" or "n/a" if either J5 or H5 is blank or both are
blank?  Hope this makes sense.  Background - I am trying to divide one
number by another to get the percentage of the difference 8/10-100%=20%
but if there are no numbers in the cells and nothing to divide, then I
want it to return "0" or "n/a".

Thanks.

Signature

edrachel

goober - 27 Jan 2006 22:12 GMT
=IF(OR(H5="",J5=""),"N/A",(J5/H5)-100%)

Hope it helps

Signature

goober

George Gee - 27 Jan 2006 22:14 GMT
One way:

=IF(OR(J5="",H5=""),"n/a",(J5/H5)-100%)

Hope this helps.

George Gee

> Hi,  I am trying to do a formula that will either return a percentage or
> if either of two cells are blank, then I want it to return either a "0"
[quoted text clipped - 7 lines]
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.