#1   Report Post  
Posted to microsoft.public.excel.misc
killertofu
 
Posts: n/a
Default IF statement help...


I am trying to make a check for codes, so that if the number code is
already assigned to something it will show "USED" next to it.

My formula now is, A2=IF(A1=0,"USED","UNUSED"). That means that if
there is a number in A1, then A2 will show USED, if not, then UNUSED.
My problem is, that if A1 is left blank, then A2 is left blank. I
still want it to say UNUSED even if it is blank.

Furthermore, if someone can tell me how I can have A2 check for
anything in A1, not just =0 numbers. That way, if I wanted to have A2
check for text, it would tell me USED if there was text in A1, and
UNUSED if it was empty.

Thanks.


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=506989

  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default IF statement help...


Try

=IF(LEN(A1),"USED","UNUSED")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=506989

  #3   Report Post  
Posted to microsoft.public.excel.misc
killertofu
 
Posts: n/a
Default IF statement help...


genius... pure.


--
killertofu
------------------------------------------------------------------------
killertofu's Profile: http://www.excelforum.com/member.php...o&userid=31024
View this thread: http://www.excelforum.com/showthread...hreadid=506989

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
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


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