Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default what is the formula that help when cell=0/cell=0 to be display a .

at the excel if b1 = 0 , b2 = 0 , and b3 formula is =(b1)/sum(b1:b2) it
display at b3 " #div/0!" i need a formula replace " #div/0!" at b3 with
number "100"
please help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default what is the formula that help when cell=0/cell=0 to be display a .


Try ...

=IF(ERROR.TYPE(B1/SUM(B1:B2))=2,100,B1/SUM(B1:B2))

Check your Excel Help for error.type or iserror functions for more
details.

Samo


--
Samo
------------------------------------------------------------------------
Samo's Profile: http://www.excelforum.com/member.php...o&userid=34413
View this thread: http://www.excelforum.com/showthread...hreadid=541894

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default what is the formula that help when cell=0/cell=0 to be display a .

=IF(SUM(B1:B2)=0,100,B1/SUM(B1:B2))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Mangawy" wrote in message
...
at the excel if b1 = 0 , b2 = 0 , and b3 formula is =(b1)/sum(b1:b2) it
display at b3 " #div/0!" i need a formula replace " #div/0!" at b3 with
number "100"
please help



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default what is the formula that help when cell=0/cell=0 to be display a .

This formula is wrong. ERROR.TYPE is used for cells that already
have an error. If there is no error, ERROR.TYPE will itself
return an N/A error.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Samo" wrote
in message
...

Try ...

=IF(ERROR.TYPE(B1/SUM(B1:B2))=2,100,B1/SUM(B1:B2))

Check your Excel Help for error.type or iserror functions for
more
details.

Samo


--
Samo
------------------------------------------------------------------------
Samo's Profile:
http://www.excelforum.com/member.php...o&userid=34413
View this thread:
http://www.excelforum.com/showthread...hreadid=541894



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default what is the formula that help when cell=0/cell=0 to be display a .


when you divide any number by 0 you get an error of "#DIV/0!", so an
error exists and therefore you can use the Error.type formula.

Samo


--
Samo
------------------------------------------------------------------------
Samo's Profile: http://www.excelforum.com/member.php...o&userid=34413
View this thread: http://www.excelforum.com/showthread...hreadid=541894



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default what is the formula that help when cell=0/cell=0 to be display a .

yeah, but what happens when you don't divide by zero?

"Samo" wrote in message
...

when you divide any number by 0 you get an error of "#DIV/0!", so an
error exists and therefore you can use the Error.type formula.

Samo


--
Samo
------------------------------------------------------------------------
Samo's Profile:

http://www.excelforum.com/member.php...o&userid=34413
View this thread: http://www.excelforum.com/showthread...hreadid=541894



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
Display formula on the cell journey Excel Worksheet Functions 2 August 27th 09 11:23 AM
Display cell ref for MAX formula bookman3 Excel Discussion (Misc queries) 7 October 17th 08 06:31 AM
Formula won't display as cell set to Constant Laurence J Excel Discussion (Misc queries) 1 June 14th 07 11:42 AM
Display formula in cell Trish Excel Discussion (Misc queries) 1 May 13th 05 09:14 AM
Shortcut key to display change the display from displaying cell values to cell formulae Adrian[_7_] Excel Programming 3 September 14th 04 12:07 PM


All times are GMT +1. The time now is 05:29 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"