PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Discussion help with syntax for if and statement

Reply

help with syntax for if and statement

 
Thread Tools Rate Thread
Old 04-10-2005, 04:06 PM   #1
snsyg
Guest
 
Posts: n/a
Default help with syntax for if and statement



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.ph...info&userid=523
View this thread: http://www.excelforum.com/showthread.php?threadid=47299

  Reply With Quote
Old 04-10-2005, 04:27 PM   #2
BenjieLop
Guest
 
Posts: n/a
Default Re: help with syntax for if and statement


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.ph...fo&userid=11019
View this thread: http://www.excelforum.com/showthrea...threadid=472997

  Reply With Quote
Old 04-10-2005, 04:40 PM   #3
snsyg
Guest
 
Posts: n/a
Default Re: help with syntax for if and statement


thanks BenjieLop, it worked perfectly

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

  Reply With Quote
Old 04-10-2005, 05:25 PM   #4
BenjieLop
Guest
 
Posts: n/a
Default Re: help with syntax for if and statement


You are welcome ... thanks for the feedback.

Regards

--
BenjieLo

-----------------------------------------------------------------------
BenjieLop's Profile: http://www.excelforum.com/member.ph...nfo&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

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