#1   Report Post  
Mike Busch
 
Posts: n/a
Default Help with condition

I have two columns that I am dividing one column by the other, yet one column
does not match the same amount of numbers. So when this comes up I would like
it to come up with "0" instead of an "error". In actually I am dividing a
number by 0. Any help thanks in advance..
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

Rather than

=A1/B1

use

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

In article ,
"Mike Busch" wrote:

I have two columns that I am dividing one column by the other, yet one column
does not match the same amount of numbers. So when this comes up I would like
it to come up with "0" instead of an "error". In actually I am dividing a
number by 0. Any help thanks in advance..

  #3   Report Post  
tjtjjtjt
 
Posts: n/a
Default

Something like:
=IF(ISERROR(A1/B1),0,A1/B1)
should do it.
The error will still be there, but it will display as a 0.

tj

"Mike Busch" wrote:

I have two columns that I am dividing one column by the other, yet one column
does not match the same amount of numbers. So when this comes up I would like
it to come up with "0" instead of an "error". In actually I am dividing a
number by 0. Any help thanks in advance..

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
make a cell empty based on condition mpierre Charts and Charting in Excel 2 December 29th 04 01:01 PM
How to add cells wiht the condition of the former cell. Rafael Excel Discussion (Misc queries) 7 December 22nd 04 04:53 AM
Workbook startup condition wikegolfa Excel Discussion (Misc queries) 3 December 16th 04 03:11 PM
how do i plot this kind of data using excel TAMM Excel Discussion (Misc queries) 1 December 11th 04 05:35 PM
condition format for surrounding cells little rusty with excel Excel Discussion (Misc queries) 1 December 9th 04 07:35 AM


All times are GMT +1. The time now is 11:09 AM.

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"