Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Function -- Return Null Value Help

Hello,

I'm new to IF functions and get cells containing to output correctly,
but when the function encounters a null value/blank cell I get #VALUE!
error.

I think my syntax is off:
=IF(AND(BE2<""|AA2="MindTap Reader (eBook Only)")|BE2 + 77|)
+IF(AND(BE2<0|AA2="MindTap Reader (eBook Only w/ associated media)")|
BE2 + 98)+IF(ISBLANK(BE2)|"")

Can anyone help here.

Thanks
Amanda
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,549
Default IF Function -- Return Null Value Help

The first line should look like...
=IF(AND(BE2<"",AA2="MindTap Reader" ),"eBook Only",BE2 + 77)
--
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
(free and commercial excel programs)





"Amanda"
wrote in message
...
Hello,

I'm new to IF functions and get cells containing to output correctly,
but when the function encounters a null value/blank cell I get #VALUE!
error.

I think my syntax is off:
=IF(AND(BE2<""|AA2="MindTap Reader (eBook Only)")|BE2 + 77|)
+IF(AND(BE2<0|AA2="MindTap Reader (eBook Only w/ associated media)")|
BE2 + 98)+IF(ISBLANK(BE2)|"")

Can anyone help here.

Thanks
Amanda



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 829
Default IF Function -- Return Null Value Help

"Amanda" wrote:
when the function encounters a null value/blank cell I get #VALUE!
error. I think my syntax is off:
=IF(AND(BE2<""|AA2="MindTap Reader (eBook Only)")|BE2 + 77|)
+IF(AND(BE2<0|AA2="MindTap Reader (eBook Only w/ associated media)")|
BE2 + 98)+IF(ISBLANK(BE2)|"")


I think you want:

=IF(BE2=""| ""| IF(AA2="MindTap Reader (eBook Only)"| BE2 + 77|
IF(AND(BE2<0|AA2="MindTap Reader (eBook Only w/ associated media)")|
BE2 + 98| 0)))

Note: I am copying the separator exactly as it appears to me, namely "|".
I assume that is some character that is not in my alphabetic (US English).
The only separators I have ever seen are comma (",") and semicolon (";").
So I would write:

=IF(BE2="", "", IF(AA2="MindTap Reader (eBook Only)", BE2 + 77,
IF(AND(BE2<0,AA2="MindTap Reader (eBook Only w/ associated media)"),
BE2 + 98, 0)))

Also note that ISBLANK() is true only when BE2 is empty (no constant; no
formula). I suspect you get a #VALUE error when BE2 contains the null
string (""). It usually better to test BE2="" instead of ISBLANK(BE2).




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
Return null Karen Excel Worksheet Functions 3 June 11th 08 08:43 AM
how to get a function to return a null value that passes the ISBL. Hawk Excel Worksheet Functions 7 March 5th 08 05:59 AM
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null Ben Excel Discussion (Misc queries) 2 March 15th 07 01:02 AM
Can a function return a Null (blank ) value? Maybe a custom functi colin_e Excel Worksheet Functions 2 March 16th 06 02:36 PM
return a " " for null values David# Excel Worksheet Functions 2 January 21st 05 06:47 PM


All times are GMT +1. The time now is 04:41 PM.

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"