A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF-if the arguement is false don't return anything



 
 
Thread Tools Display Modes
  #1  
Old July 22nd, 2004, 06:28 AM
Rae
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

Hi all,
I am trying to use the IF functionsuch that if say C3=M4 then return
NA, if not don't return anything in the cell. What can I do? Any help
will be greatly appreciated. Thank you!
Rae


---
Message posted from http://www.ExcelForum.com/

  #2  
Old July 22nd, 2004, 06:33 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

Hi
try
=IF(C3=M4,NA(),"")

--
Regards
Frank Kabel
Frankfurt, Germany

"Rae " schrieb im Newsbeitrag
...
Hi all,
I am trying to use the IF functionsuch that if say C3=M4 then return
NA, if not don't return anything in the cell. What can I do? Any

help
will be greatly appreciated. Thank you!
Rae


---
Message posted from http://www.ExcelForum.com/


  #3  
Old July 22nd, 2004, 06:37 AM
JE McGimpsey
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

One way:

=IF(C3=M4,"NA","")

This doesn't really return nothing, it returns a null string (""). But
it will *appear* blank.






In article ,
Rae wrote:

Hi all,
I am trying to use the IF functionsuch that if say C3=M4 then return
NA, if not don't return anything in the cell. What can I do? Any help
will be greatly appreciated. Thank you!
Rae


---
Message posted from http://www.ExcelForum.com/

  #4  
Old July 22nd, 2004, 06:39 AM
Alan
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

"Rae " wrote in message
...

I am trying to use the IF functionsuch that if say C3=M4 then return
NA, if not don't return anything in the cell. What can I do? Any
help will be greatly appreciated. Thank you!
Rae


---
Message posted from http://www.ExcelForum.com/


Hi Rae,

You could use this:

IF(C3=M4,NA(),"")

However, note that an empty string ("") is NOT the same as nothing.

It is one of my few enduring gripes with Excel that Microsoft has
never provided the ability to return a null value (not zero, not an
empty string, but nothing).

If they did, we could use something like this:

IF(C3=M4,NA(),Null())

Unfortuately, that is not an option at this time (as far as I know),
and in any case, (almost?) always you can work around it with the
above approach..

HTH,

Alan.


  #5  
Old July 22nd, 2004, 06:53 AM
Rae
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

Hi all,
So what if I don't only want it to "appear" blank? What if I want it
to be blank so that I can type other things inside? Thank you!

Rgds,
Rae


---
Message posted from http://www.ExcelForum.com/

  #6  
Old July 22nd, 2004, 08:03 AM
Biff
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

Hi Rae!

You can't!

A cell can only contain one of two things, a formula that
returns a value (which is what you have) or a constant.
You can have one or the other but not both.

Biff

-----Original Message-----
Hi all,
So what if I don't only want it to "appear" blank? What

if I want it
to be blank so that I can type other things inside?

Thank you!

Rgds,
Rae


---
Message posted from http://www.ExcelForum.com/

.

  #7  
Old July 22nd, 2004, 09:33 AM
Rae
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

Hi Biff,
Icic, so Excel's is not that intelligent after all. That's quite a
limitation. Anyway, thanks folks!

Rgds,
Rae


---
Message posted from http://www.ExcelForum.com/

  #8  
Old July 22nd, 2004, 07:01 PM
SidBord
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

It seems to me that you might be able to make use of "event
processing" to solve this problem. You'll have to do some
studying. The idea is to write an event macro that senses
when you write something into the cell. When that happens
the event macro examines the contents and writes N/A in one
case, or clears the cell in the other. That way you
wouldn't have a formula stored in the cell.
-----Original Message-----
Hi all,
I am trying to use the IF functionsuch that if say C3=M4

then return
NA, if not don't return anything in the cell. What can I

do? Any help
will be greatly appreciated. Thank you!
Rae


---
Message posted from http://www.ExcelForum.com/

.

  #9  
Old July 22nd, 2004, 10:01 PM
pboost1
external usenet poster
 
Posts: n/a
Default IF-if the arguement is false don't return anything

One thing that you can try to do is have the false statement display 0,
then condition format to have the cell display the 0 as white (or
background color of the cell).


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ugly Macro - Duplicates/Non Numbers/Fill Down foolio General Discussion 12 August 25th, 2004 10:46 PM
excel 2003 error>> compile error in hidden module: ThisWorkbook clayton General Discussion 4 June 22nd, 2004 02:02 AM
Hide Specific rows. Steve Worksheet Functions 7 June 9th, 2004 09:27 PM
ODMA Doc ID Field Julie Mailmerge 3 May 4th, 2004 07:28 PM


All times are GMT +1. The time now is 06:48 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.