Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 38
Default division formula

when i try to divide 100 by 0, its gives me error message #DIV/0!. This i
undersatnd is immpossible. But can i setup a formula if any number being
divided by zero the outcome should be zero or n/a.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default division formula

One way:

A1 = 100
A2 = 0 (or empty cell which evaluates to 0)

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

--
Biff
Microsoft Excel MVP


"Rohit" wrote in message
...
when i try to divide 100 by 0, its gives me error message #DIV/0!. This i
undersatnd is immpossible. But can i setup a formula if any number being
divided by zero the outcome should be zero or n/a.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 207
Default division formula

Rohit,
Yes, it is possible. In the Cell that has the result as "#DIV/0!"
Type:
"=IF(ISERROR(C1/D1),0,(C1/D1))"
where 0 is zero or substitue "n/a"
hth

"Rohit" wrote:

when i try to divide 100 by 0, its gives me error message #DIV/0!. This i
undersatnd is immpossible. But can i setup a formula if any number being
divided by zero the outcome should be zero or n/a.
Thanks

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
Formula after division gemcauley Excel Discussion (Misc queries) 1 October 26th 09 05:07 PM
creating formula for subtraction and then division hetal Excel Worksheet Functions 3 March 28th 07 02:28 AM
Excel Division Formula Ron Excel Worksheet Functions 5 August 9th 06 08:05 PM
DIV/0! error in SumProduct formula with no division Irrational Excel Worksheet Functions 1 August 18th 05 01:39 AM
division formula Terrie New Users to Excel 1 January 8th 05 11:52 PM


All times are GMT +1. The time now is 02:24 PM.

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

About Us

"It's about Microsoft Excel"