Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brad
 
Posts: n/a
Default IF(ISNA formula problem

I'm using the above formula to return a blank cell or a 0 if my vlookup
returns an N/A. Where this is a problem is that I have a forumlua
=vlookup(A1,range,6,false)-I1. When I use
=IF(ISNA(vlookup(A1,range,6,false)),"0",(vlookup(A 1,range,6,false))-I9 I get
#VALUE! instead of 0. Why? Is there anyway around that? I'm trying to
automate my sheet as much as possible so that I don't have to spend time
deleting formulas etc...
  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi

"0" is text, 0 is a number. Since you use "0" in a calculation, it will err.

HTH. Best wishes Harald

"Brad" skrev i melding
...
I'm using the above formula to return a blank cell or a 0 if my vlookup
returns an N/A. Where this is a problem is that I have a forumlua
=vlookup(A1,range,6,false)-I1. When I use
=IF(ISNA(vlookup(A1,range,6,false)),"0",(vlookup(A 1,range,6,false))-I9 I

get
#VALUE! instead of 0. Why? Is there anyway around that? I'm trying to
automate my sheet as much as possible so that I don't have to spend time
deleting formulas etc...



  #3   Report Post  
Brad
 
Posts: n/a
Default

is there no way around that?

"Harald Staff" wrote:

Hi

"0" is text, 0 is a number. Since you use "0" in a calculation, it will err.

HTH. Best wishes Harald

"Brad" skrev i melding
...
I'm using the above formula to return a blank cell or a 0 if my vlookup
returns an N/A. Where this is a problem is that I have a forumlua
=vlookup(A1,range,6,false)-I1. When I use
=IF(ISNA(vlookup(A1,range,6,false)),"0",(vlookup(A 1,range,6,false))-I9 I

get
#VALUE! instead of 0. Why? Is there anyway around that? I'm trying to
automate my sheet as much as possible so that I don't have to spend time
deleting formulas etc...




  #4   Report Post  
JulieD
 
Posts: n/a
Default

Hi Brad

rewrite your formula as
=IF(ISNA(vlookup(A1,range,6,false)),0,(vlookup(A1, range,6,false))-I9

you only need the " " when you are talking about text.

Cheers
JulieD

"Brad" wrote in message
...
is there no way around that?

"Harald Staff" wrote:

Hi

"0" is text, 0 is a number. Since you use "0" in a calculation, it will
err.

HTH. Best wishes Harald

"Brad" skrev i melding
...
I'm using the above formula to return a blank cell or a 0 if my vlookup
returns an N/A. Where this is a problem is that I have a forumlua
=vlookup(A1,range,6,false)-I1. When I use
=IF(ISNA(vlookup(A1,range,6,false)),"0",(vlookup(A 1,range,6,false))-I9
I

get
#VALUE! instead of 0. Why? Is there anyway around that? I'm trying
to
automate my sheet as much as possible so that I don't have to spend
time
deleting formulas etc...






  #5   Report Post  
Brad
 
Posts: n/a
Default

excellent, that worked. Thanks. How about if a division now is returning
#DIV/O. Can I create a similar function in that cell so that it returns a 0

"JulieD" wrote:

Hi Brad

rewrite your formula as
=IF(ISNA(vlookup(A1,range,6,false)),0,(vlookup(A1, range,6,false))-I9

you only need the " " when you are talking about text.

Cheers
JulieD

"Brad" wrote in message
...
is there no way around that?

"Harald Staff" wrote:

Hi

"0" is text, 0 is a number. Since you use "0" in a calculation, it will
err.

HTH. Best wishes Harald

"Brad" skrev i melding
...
I'm using the above formula to return a blank cell or a 0 if my vlookup
returns an N/A. Where this is a problem is that I have a forumlua
=vlookup(A1,range,6,false)-I1. When I use
=IF(ISNA(vlookup(A1,range,6,false)),"0",(vlookup(A 1,range,6,false))-I9
I
get
#VALUE! instead of 0. Why? Is there anyway around that? I'm trying
to
automate my sheet as much as possible so that I don't have to spend
time
deleting formulas etc...








  #6   Report Post  
JulieD
 
Posts: n/a
Default

Hi Brad

you're welcom .. as to your new question, yes, you'll need to use the
ISERROR function (which is a pretty broad function, covers lots of errors -
N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, and #NULL)

e.g.
=IF(ISERROR(A1/B1),0,A1/B1)

Cheers
JulieD


"Brad" wrote in message
...
excellent, that worked. Thanks. How about if a division now is returning
#DIV/O. Can I create a similar function in that cell so that it returns a
0

"JulieD" wrote:

Hi Brad

rewrite your formula as
=IF(ISNA(vlookup(A1,range,6,false)),0,(vlookup(A1, range,6,false))-I9

you only need the " " when you are talking about text.

Cheers
JulieD

"Brad" wrote in message
...
is there no way around that?

"Harald Staff" wrote:

Hi

"0" is text, 0 is a number. Since you use "0" in a calculation, it
will
err.

HTH. Best wishes Harald

"Brad" skrev i melding
...
I'm using the above formula to return a blank cell or a 0 if my
vlookup
returns an N/A. Where this is a problem is that I have a forumlua
=vlookup(A1,range,6,false)-I1. When I use
=IF(ISNA(vlookup(A1,range,6,false)),"0",(vlookup(A 1,range,6,false))-I9
I
get
#VALUE! instead of 0. Why? Is there anyway around that? I'm
trying
to
automate my sheet as much as possible so that I don't have to spend
time
deleting formulas etc...








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 Problem J.C.De New Users to Excel 1 January 21st 05 04:22 PM
Need a formula for this problem Trying to excel in life but need help Excel Worksheet Functions 1 January 12th 05 11:05 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Baffling formula problem Ken Schmidt Excel Discussion (Misc queries) 2 December 21st 04 07:52 AM
Formula Problem Tracey BVS Excel Discussion (Misc queries) 2 December 9th 04 11:50 AM


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