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 Statements...I think


I would like to create an IF statement such that IF A1 is not equal to
nil or A2 is not equal to nil then A3 will display an X. In case this
is not clear I have listed a couple of examples below:

Example 1
A1=""
A2=""
therefore A3=""

Example 2
A1=5.5
A2=""
therefore A3=X

Example 3
A1=""
A2=Kevin
therefore A3=X

Example 4
A1=5.5
A2=Kevin
therefore A3=X

Thank you in advance.

Kevin Knight


--
kevinknight09
------------------------------------------------------------------------
kevinknight09's Profile: http://www.excelforum.com/member.php...o&userid=37024
View this thread: http://www.excelforum.com/showthread...hreadid=567602

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 492
Default IF Statements...I think

=IF(OR(A1="",A2=""),"X","")
or if you want to display an error message,
=IF(OR(A1="",A2=""),"X","You're error messgage, formula or whatever")
Regards,
Alan.
"kevinknight09"
wrote in message
news:kevinknight09.2bxh0t_1154547628.2666@excelfor um-nospam.com...

I would like to create an IF statement such that IF A1 is not equal to
nil or A2 is not equal to nil then A3 will display an X. In case this
is not clear I have listed a couple of examples below:

Example 1
A1=""
A2=""
therefore A3=""

Example 2
A1=5.5
A2=""
therefore A3=X

Example 3
A1=""
A2=Kevin
therefore A3=X

Example 4
A1=5.5
A2=Kevin
therefore A3=X

Thank you in advance.

Kevin Knight


--
kevinknight09
------------------------------------------------------------------------
kevinknight09's Profile:
http://www.excelforum.com/member.php...o&userid=37024
View this thread: http://www.excelforum.com/showthread...hreadid=567602



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default IF Statements...I think

IF(AND(A1="",A2=""),"","X")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"kevinknight09"
wrote in message
news:kevinknight09.2bxh0t_1154547628.2666@excelfor um-nospam.com...

I would like to create an IF statement such that IF A1 is not equal to
nil or A2 is not equal to nil then A3 will display an X. In case this
is not clear I have listed a couple of examples below:

Example 1
A1=""
A2=""
therefore A3=""

Example 2
A1=5.5
A2=""
therefore A3=X

Example 3
A1=""
A2=Kevin
therefore A3=X

Example 4
A1=5.5
A2=Kevin
therefore A3=X

Thank you in advance.

Kevin Knight


--
kevinknight09
------------------------------------------------------------------------
kevinknight09's Profile:

http://www.excelforum.com/member.php...o&userid=37024
View this thread: http://www.excelforum.com/showthread...hreadid=567602



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
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
Linking two IF statements together trixma Excel Discussion (Misc queries) 2 September 29th 05 06:07 AM
Logical ELSE statements Ruth Excel Discussion (Misc queries) 2 June 23rd 05 03:23 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM
If statements Mark Excel Worksheet Functions 3 November 2nd 04 08:39 PM


All times are GMT +1. The time now is 12:41 AM.

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"