#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bastien86
 
Posts: n/a
Default if or problem

I have the data

0.102365034 9.419
#NUM! #NUM!
0 div/0

I put the formula in:

=IF(OR(A1=0,ISERROR(A1)),b0,1/a1-1/2.86)

for the column on the right and filled down. How come my 2nd and 3rd lines
on the right column aren't 9.419

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default if or problem

Assuming first column is data and second expected result:

for data of #NUM! will fail (error) on the "A1=0" (non-numeric) test while
for A1=0, your test returns zero (not div/0). Your test will only work for A1
being a non-zero valid number. (I assume b0 is a typo).

Why should they be 9.419?

"bastien86" wrote:

I have the data

0.102365034 9.419
#NUM! #NUM!
0 div/0

I put the formula in:

=IF(OR(A1=0,ISERROR(A1)),b0,1/a1-1/2.86)

for the column on the right and filled down. How come my 2nd and 3rd lines
on the right column aren't 9.419

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tim M
 
Posts: n/a
Default if or problem

In your formula you are telling it not to do the calculation if it is a 0 or
and error. The question is what is b0? Did you mean for that to be a cell,
perhaps B1?

"bastien86" wrote:

I have the data

0.102365034 9.419
#NUM! #NUM!
0 div/0

I put the formula in:

=IF(OR(A1=0,ISERROR(A1)),b0,1/a1-1/2.86)

for the column on the right and filled down. How come my 2nd and 3rd lines
on the right column aren't 9.419

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bastien86
 
Posts: n/a
Default if or problem

its b0 because the i knew that data wouldn't fail and put it at the top, the
data after that would then see if it was either a fail or a 0 in the a
column, and if it was return the value above it or do the calculation.

"Toppers" wrote:

Assuming first column is data and second expected result:

for data of #NUM! will fail (error) on the "A1=0" (non-numeric) test while
for A1=0, your test returns zero (not div/0). Your test will only work for A1
being a non-zero valid number. (I assume b0 is a typo).

Why should they be 9.419?

"bastien86" wrote:

I have the data

0.102365034 9.419
#NUM! #NUM!
0 div/0

I put the formula in:

=IF(OR(A1=0,ISERROR(A1)),b0,1/a1-1/2.86)

for the column on the right and filled down. How come my 2nd and 3rd lines
on the right column aren't 9.419

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bastien86
 
Posts: n/a
Default if or problem

b0 was put in simply to say, if the a column is not 0 or an error then place
the value above the current cell in the cell containing the formula.

"Tim M" wrote:

In your formula you are telling it not to do the calculation if it is a 0 or
and error. The question is what is b0? Did you mean for that to be a cell,
perhaps B1?

"bastien86" wrote:

I have the data

0.102365034 9.419
#NUM! #NUM!
0 div/0

I put the formula in:

=IF(OR(A1=0,ISERROR(A1)),b0,1/a1-1/2.86)

for the column on the right and filled down. How come my 2nd and 3rd lines
on the right column aren't 9.419



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bastien86
 
Posts: n/a
Default if or problem

The formula works fine for

=if(iserror(a1),b0,1/a1-1/2.5)

but then i have 0 in my a column and it screws up the false part cause 1/0
gives div/0

i want to say iserror or a1=0 but i get problems:\
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default if or problem

How is "bo" defined? Using it, I get a #NAME! error.

"bastien86" wrote:

The formula works fine for

=if(iserror(a1),b0,1/a1-1/2.5)

but then i have 0 in my a column and it screws up the false part cause 1/0
gives div/0

i want to say iserror or a1=0 but i get problems:\

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bastien86
 
Posts: n/a
Default if or problem

i figured it out, the #num was screwing up for the test if a2=0, i had to do
=if(iserror(a1),b0,if(a1=0,b0,1/a1-1/2.5))

"Toppers" wrote:

How is "bo" defined? Using it, I get a #NAME! error.

"bastien86" wrote:

The formula works fine for

=if(iserror(a1),b0,1/a1-1/2.5)

but then i have 0 in my a column and it screws up the false part cause 1/0
gives div/0

i want to say iserror or a1=0 but i get problems:\

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
have some problem with database baldamenti Excel Discussion (Misc queries) 1 October 13th 05 05:38 PM
Urgent Help Required on Excel Macro Problem Sachin Shah Excel Discussion (Misc queries) 1 August 17th 05 06:26 AM
Problem With Reference Update Egon Excel Worksheet Functions 17 July 16th 05 05:45 AM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
Freeze Pane problem in shared workbooks JM Excel Discussion (Misc queries) 1 February 1st 05 12:04 AM


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