#1   Report Post  
Dominique Feteau
 
Posts: n/a
Default #DIV/0 Error

How would I write this function:

If A2/A1=0 or #DIV/0 Error, then enter 0.00%, otherwise enter finish
calculation.

For Example A2=2 and A1=1, in cell B2 50.00% would show up.
But if A2=0 and A1=0 (only because data hasnt been entered there yet), then
just enter 0.00%

thanx


  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

=IF(A1=0,0,A2/A1)

Arvi Laanemets


"Dominique Feteau" wrote in message
...
How would I write this function:

If A2/A1=0 or #DIV/0 Error, then enter 0.00%, otherwise enter finish
calculation.

For Example A2=2 and A1=1, in cell B2 50.00% would show up.
But if A2=0 and A1=0 (only because data hasnt been entered there yet),

then
just enter 0.00%

thanx




  #3   Report Post  
Dominique Feteau
 
Posts: n/a
Default

oh gheez. i need to stop drinking and trying to think of functions at the
same time...

niq
"Arvi Laanemets" wrote in message
...
Hi

=IF(A1=0,0,A2/A1)

Arvi Laanemets


"Dominique Feteau" wrote in message
...
How would I write this function:

If A2/A1=0 or #DIV/0 Error, then enter 0.00%, otherwise enter finish
calculation.

For Example A2=2 and A1=1, in cell B2 50.00% would show up.
But if A2=0 and A1=0 (only because data hasnt been entered there yet),

then
just enter 0.00%

thanx






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get rid of "Compile error in hidden module" error message David Excel Discussion (Misc queries) 4 January 21st 05 11:39 PM
Findlink Error D Moniz via OfficeKB.com Links and Linking in Excel 0 January 20th 05 04:53 PM
Error when entering and exiting excel Randy Excel Discussion (Misc queries) 1 January 11th 05 03:17 PM
Downloading Templates for Excel error with a windows error. Lanie Moore Excel Discussion (Misc queries) 0 December 20th 04 11:39 PM
#REF error Christen Excel Worksheet Functions 5 November 3rd 04 07:29 PM


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

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

About Us

"It's about Microsoft Excel"