Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Whats wrong with this OR formula?

Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this formula
work?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Whats wrong with this OR formula?

Replace ISERROR with ISNA.

Dave
--
Brevity is the soul of wit.


"Mark" wrote:

Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this formula
work?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Whats wrong with this OR formula?

You could trap the error from the VLOOKUP in F15 using this:

=IF(ISNA(VLOOKUP( ... )," ",VLOOKUP( ... ))

so that you won't get #N/A in that cell - you can change " " to "" or 0
whichever suits.

Then your formula could become:

=IF(OR(F15=" ",F15=0),"N/A","Approval Needed")

Hope this helps.

Pete

Mark wrote:
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this formula
work?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Whats wrong with this OR formula?

This one worked beautifully. Thanks much!

Mark

"Pete_UK" wrote in message
ups.com...
You could trap the error from the VLOOKUP in F15 using this:

=IF(ISNA(VLOOKUP( ... )," ",VLOOKUP( ... ))

so that you won't get #N/A in that cell - you can change " " to "" or 0
whichever suits.

Then your formula could become:

=IF(OR(F15=" ",F15=0),"N/A","Approval Needed")

Hope this helps.

Pete

Mark wrote:
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this
formula
work?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Whats wrong with this OR formula?

Thanks for feeding back, Mark.

Pete

Mark wrote:
This one worked beautifully. Thanks much!

Mark

"Pete_UK" wrote in message
ups.com...
You could trap the error from the VLOOKUP in F15 using this:

=IF(ISNA(VLOOKUP( ... )," ",VLOOKUP( ... ))

so that you won't get #N/A in that cell - you can change " " to "" or 0
whichever suits.

Then your formula could become:

=IF(OR(F15=" ",F15=0),"N/A","Approval Needed")

Hope this helps.

Pete

Mark wrote:
Greetings. I am trying to get this formula containing an OR command that
looks like this:

=IF(OR(F15=" ",F15=0,ISERROR(F15)),"N/A","Approval Needed")

When #N/A appears in cell F15 because of an invalid lookup value, I still
get #N/A instead of N/A like I have in quotes above. Why won't this
formula
work?

Thanks



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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
excel formula calculations are wrong Shamroq Excel Worksheet Functions 4 February 8th 06 11:49 AM
Formula correct, answer wrong TJAC Excel Discussion (Misc queries) 2 January 3rd 06 06:15 PM
Formula retrieves wrong data Newmoon Excel Discussion (Misc queries) 2 August 11th 05 04:02 PM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM


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