Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Divided by zero

Hi All,

I have two cells e.g. a1 & b1 and c1 contains the formula =a1/b1, if b1
equals to 0 then i need that formula returns 0 in c1 instead of #DIV/0!

Plz help

Regards

Hassan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Divided by zero

=if(iserror(a1/b1),0,a1/b1)

or

=if(b1=0,0,a1/b1)

--
Regards,
Tom Ogilvy


"Hassan" wrote:

Hi All,

I have two cells e.g. a1 & b1 and c1 contains the formula =a1/b1, if b1
equals to 0 then i need that formula returns 0 in c1 instead of #DIV/0!

Plz help

Regards

Hassan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Divided by zero


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

Hassan wrote:

Hi All,

I have two cells e.g. a1 & b1 and c1 contains the formula =a1/b1, if b1
equals to 0 then i need that formula returns 0 in c1 instead of #DIV/0!

Plz help

Regards

Hassan



--
Gordon Rainsford

London UK
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
Value divided by time Rob Excel Worksheet Functions 3 June 21st 08 03:44 PM
Zero divided by Zero TheNYCer Excel Programming 3 June 22nd 07 11:40 PM
365-day divided into 13 periods helen Excel Discussion (Misc queries) 7 October 24th 06 04:13 PM
returning zero on pct divided by zero dave99 Excel Discussion (Misc queries) 2 January 7th 06 08:47 PM
Amount is divided by 100 Kanga Excel Discussion (Misc queries) 2 October 13th 05 02:01 PM


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

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"