PC Review


Reply
Thread Tools Rate Thread

help with syntax for if and statement

 
 
snsyg
Guest
Posts: n/a
 
      4th Oct 2005

hello all,

i am having trouble figuring out the syntax for an if / and statement.

this works =(IF(A1=0,"Input Required",B1))

here's the logic i want: IF cell A1=0 AND cell A2<=350000 THEN return
cell value of "Input Required" ELSE A3.

i know this is a basic if and statement, but i just can't get th
syntax figured out.

any ideas?

thanks

--
snsy
-----------------------------------------------------------------------
snsyg's Profile: http://www.excelforum.com/member.php...nfo&userid=523
View this thread: http://www.excelforum.com/showthread.php?threadid=47299

 
Reply With Quote
 
 
 
 
BenjieLop
Guest
Posts: n/a
 
      4th Oct 2005

snsyg Wrote:
> hello all,
>
> i am having trouble figuring out the syntax for an if / and statement.
>
> this works =(IF(A1=0,"Input Required",B1))
>
> here's the logic i want: IF cell A1=0 AND cell A2<=350000 THEN return a
> cell value of "Input Required" ELSE A3.
>
> i know this is a basic if and statement, but i just can't get the
> syntax figured out.
>
> any ideas?
>
> thanks!



=IF(AND(A1=0,A2<=350000),\"INPUT REQUIRED\",A3)

Regards.


--
BenjieLop


------------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...o&userid=11019
View this thread: http://www.excelforum.com/showthread...hreadid=472997

 
Reply With Quote
 
snsyg
Guest
Posts: n/a
 
      4th Oct 2005

thanks BenjieLop, it worked perfectly

--
snsy
-----------------------------------------------------------------------
snsyg's Profile: http://www.excelforum.com/member.php...nfo&userid=523
View this thread: http://www.excelforum.com/showthread.php?threadid=47299

 
Reply With Quote
 
BenjieLop
Guest
Posts: n/a
 
      4th Oct 2005

You are welcome ... thanks for the feedback.

Regards

--
BenjieLo

-----------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.php...fo&userid=1101
View this thread: http://www.excelforum.com/showthread.php?threadid=47299

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if statement syntax help OfficeManager Microsoft Excel Worksheet Functions 5 23rd Jul 2008 09:09 PM
select statement into if statement in an event code (syntax error =?Utf-8?B?dG90YQ==?= Microsoft Access VBA Modules 1 12th Dec 2004 12:13 PM
Statement syntax =?Utf-8?B?SmVhbm5pZQ==?= Microsoft Access Reports 9 11th Nov 2004 04:06 PM
help with IF statement syntax =?Utf-8?B?TWlrZSBC?= Microsoft Word Document Management 4 22nd Jul 2004 06:29 AM
IIF Statement syntax? =?Utf-8?B?bWFj?= Microsoft Excel Misc 4 28th Jan 2004 10:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 AM.