A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#DIV errors



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2008, 08:44 PM posted to microsoft.public.excel.misc
Sidney Bruce
external usenet poster
 
Posts: 1
Default #DIV errors

Someone please help ! Have looked everywhere.

I have created a worksheet where the user enters an item and a price and the
worksheet calcs the unit price. Like this:

A B C D
Item Price Units Price per Unit
Cheese $ 10.00 2 =b1/c1 so $
5.00 is answered

That's fine as long as there is any entry, with no entry say onthe 2nd line
it looks like this

A B C D
Item Price Units Price per Unit
Cheese $ 10.00 2 =b1/c1 so $
5.00 is answered
blank blank blank # DIV/0#

It is this error (#DIV/0!) thats my issue. The answer (when an entry is
made) the $ 5.00 is posted into aother worksheet...but the #DIV errors are
causing subsequent #DIV errors when I try to say...add the colum or do
anything else with that group of data.

I need the user to be able to enter multiple data, but I need to be able to
make the calcs without comming up with the #DIV when the user leaves the line
blank.

Please Help!

  #3  
Old May 24th, 2008, 08:54 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default #DIV errors

Myabe try trapping for the denominator being blank/containing a zero,
eg: =IF(OR(C1="",C1=0),0,B1/C1)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Sidney Bruce" wrote:
Someone please help ! Have looked everywhere.

I have created a worksheet where the user enters an item and a price and the
worksheet calcs the unit price. Like this:

A B C D
Item Price Units Price per Unit
Cheese $ 10.00 2 =b1/c1 so $
5.00 is answered

That's fine as long as there is any entry, with no entry say onthe 2nd line
it looks like this

A B C D
Item Price Units Price per Unit
Cheese $ 10.00 2 =b1/c1 so $
5.00 is answered
blank blank blank # DIV/0#

It is this error (#DIV/0!) thats my issue. The answer (when an entry is
made) the $ 5.00 is posted into aother worksheet...but the #DIV errors are
causing subsequent #DIV errors when I try to say...add the colum or do
anything else with that group of data.

I need the user to be able to enter multiple data, but I need to be able to
make the calcs without comming up with the #DIV when the user leaves the line
blank.

Please Help!

  #5  
Old May 24th, 2008, 09:23 PM posted to microsoft.public.excel.misc
Sidney Bruce[_2_]
external usenet poster
 
Posts: 4
Default #DIV errors

THANK YOU SO MUCH!

"Max" wrote:

Myabe try trapping for the denominator being blank/containing a zero,
eg: =IF(OR(C1="",C1=0),0,B1/C1)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Sidney Bruce" wrote:
Someone please help ! Have looked everywhere.

I have created a worksheet where the user enters an item and a price and the
worksheet calcs the unit price. Like this:

A B C D
Item Price Units Price per Unit
Cheese $ 10.00 2 =b1/c1 so $
5.00 is answered

That's fine as long as there is any entry, with no entry say onthe 2nd line
it looks like this

A B C D
Item Price Units Price per Unit
Cheese $ 10.00 2 =b1/c1 so $
5.00 is answered
blank blank blank # DIV/0#

It is this error (#DIV/0!) thats my issue. The answer (when an entry is
made) the $ 5.00 is posted into aother worksheet...but the #DIV errors are
causing subsequent #DIV errors when I try to say...add the colum or do
anything else with that group of data.

I need the user to be able to enter multiple data, but I need to be able to
make the calcs without comming up with the #DIV when the user leaves the line
blank.

Please Help!

  #6  
Old May 24th, 2008, 11:11 PM posted to microsoft.public.excel.misc
Sandy Mann
external usenet poster
 
Posts: 2,264
Default #DIV errors

Thanks for the feedback but Max's formulas is better - I never thought about
C1 holding a zero value.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sidney Bruce" wrote in message
...
THANKS TO YOU!

"Sandy Mann" wrote:

Use:

=IF(C1="","",B1/C1)

(The C1="" will also work for blank C1 cells.)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Sidney Bruce" Sidney
wrote in message
...
Someone please help ! Have looked everywhere.

I have created a worksheet where the user enters an item and a price
and
the
worksheet calcs the unit price. Like this:

A B C D
Item Price Units Price per
Unit
Cheese $ 10.00 2 =b1/c1
so
$
5.00 is answered

That's fine as long as there is any entry, with no entry say onthe 2nd
line
it looks like this

A B C D
Item Price Units Price per
Unit
Cheese $ 10.00 2 =b1/c1
so
$
5.00 is answered
blank blank blank # DIV/0#

It is this error (#DIV/0!) thats my issue. The answer (when an entry
is
made) the $ 5.00 is posted into aother worksheet...but the #DIV errors
are
causing subsequent #DIV errors when I try to say...add the colum or do
anything else with that group of data.

I need the user to be able to enter multiple data, but I need to be
able
to
make the calcs without comming up with the #DIV when the user leaves
the
line
blank.

Please Help!









  #7  
Old May 24th, 2008, 11:55 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default #DIV errors

Welcome, Sidney.
Take a moment, press the "Yes" button below.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Sidney Bruce" wrote:
THANK YOU SO MUCH!


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.