PC Review


Reply
Thread Tools Rate Thread

cell formula question

 
 
Robert Crandal
Guest
Posts: n/a
 
      18th May 2010
I am using the following formula in one of my cells: "=C1 / D2".
The problem with this formula is that the result will be "#DIV/0!"
if cell D2 contains no data.

Can I somehow fix my formula so it does NOT return any value
if either C1 or D2 is empty? I just want to avoid situations when
the outuput of my formula is "#DIV/0!" or "#Value#" because it
just doesn't look pretty to me, hahah!

Thank you!


 
Reply With Quote
 
 
 
 
jkrons
Guest
Posts: n/a
 
      18th May 2010
Try =IF(ISNA(C1/D2;"";C1/D2)

Jan

On 18 Maj, 10:08, "Robert Crandal" <nob...@gmail.com> wrote:
> I am using the following formula in one of my cells: "=C1 / D2".
> The problem with this formula is that the result will be "#DIV/0!"
> if cell D2 contains no data.
>
> Can I somehow fix my formula so it does NOT return any value
> if either C1 or D2 is empty? * I just want to avoid situations when
> the outuput of my formula is "#DIV/0!" or "#Value#" because it
> just doesn't look pretty to me, hahah!
>
> Thank you!


 
Reply With Quote
 
jkrons
Guest
Posts: n/a
 
      18th May 2010
Actually

=IF(ISERROR(C1/D2;"";C1/D2)

is better

On 18 Maj, 11:16, jkrons <j...@knord.dk> wrote:
> Try =IF(ISNA(C1/D2;"";C1/D2)
>
> Jan
>
> On 18 Maj, 10:08, "Robert Crandal" <nob...@gmail.com> wrote:
>
>
>
> > I am using the following formula in one of my cells: "=C1 / D2".
> > The problem with this formula is that the result will be "#DIV/0!"
> > if cell D2 contains no data.

>
> > Can I somehow fix my formula so it does NOT return any value
> > if either C1 or D2 is empty? * I just want to avoid situations when
> > the outuput of my formula is "#DIV/0!" or "#Value#" because it
> > just doesn't look pretty to me, hahah!

>
> > Thank you!- Skjul tekst i anførselstegn -

>
> - Vis tekst i anførselstegn -


 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      18th May 2010
Another way but only if all users have 2007+

=IFERROR(A1/B1,"")

in 97-2003 use ISERROR as suggested by jkrons

Regards,
Peter T

"jkrons" <(E-Mail Removed)> wrote in message
news:866dc834-28f7-43b9-9961-(E-Mail Removed)...
Actually

=IF(ISERROR(C1/D2;"";C1/D2)

is better

On 18 Maj, 11:16, jkrons <j...@knord.dk> wrote:
> Try =IF(ISNA(C1/D2;"";C1/D2)
>
> Jan
>
> On 18 Maj, 10:08, "Robert Crandal" <nob...@gmail.com> wrote:
>
>
>
> > I am using the following formula in one of my cells: "=C1 / D2".
> > The problem with this formula is that the result will be "#DIV/0!"
> > if cell D2 contains no data.

>
> > Can I somehow fix my formula so it does NOT return any value
> > if either C1 or D2 is empty? I just want to avoid situations when
> > the outuput of my formula is "#DIV/0!" or "#Value#" because it
> > just doesn't look pretty to me, hahah!

>
> > Thank you!- Skjul tekst i anførselstegn -

>
> - Vis tekst i anførselstegn -



 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      18th May 2010
Robert,

This will return a blank cell unless both cells have a number in

=IF(COUNT(C1,D2)=2,C1/D2,"")

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Robert Crandal" wrote:

> I am using the following formula in one of my cells: "=C1 / D2".
> The problem with this formula is that the result will be "#DIV/0!"
> if cell D2 contains no data.
>
> Can I somehow fix my formula so it does NOT return any value
> if either C1 or D2 is empty? I just want to avoid situations when
> the outuput of my formula is "#DIV/0!" or "#Value#" because it
> just doesn't look pretty to me, hahah!
>
> Thank you!
>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy formula question -sum of 1 cell to end Edward Microsoft Excel Discussion 4 17th Feb 2009 07:19 PM
question about cell reference in a formula kelie.feng@gmail.com Microsoft Excel Misc 2 7th Apr 2006 06:49 PM
Excel question? Regarding cell formula =?Utf-8?B?S3Jpc3Rpbg==?= Microsoft Excel Worksheet Functions 7 1st Apr 2005 10:30 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Microsoft Excel Misc 1 8th Jul 2003 03:03 PM
Question: Cell formula or macro to write result of one cell to another cell Frederik Romanov Microsoft Excel Programming 1 8th Jul 2003 03:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 PM.