IF question

dctag

New Member
Joined
Sep 11, 2002
Messages
13
Hello,

I have been going at this for about 1 1/2 hours now and as rediculous as it must sound I cant figure this out.

I am trying to make a statement like

if d42=1 and g42+j42<=1 then True if not then False

Right now I have =if(d42=1,and,if(g42+j42)>=1.True.False)

I cant figure out what I am doing wrong.

Thank You,
David
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,458
dctag said:
Hello,

I have been going at this for about 1 1/2 hours now and as rediculous as it must sound I cant figure this out.

I am trying to make a statement like

if d42=1 and g42+j42<=1 then True if not then False

Right now I have =if(d42=1,and,if(g42+j42)>=1.True.False)

I cant figure out what I am doing wrong.

Thank You,
David

=IF(AND(D42=1,G42+J42<=1),TRUE,FALSE)
 

PA HS Teacher

Well-known Member
Joined
Jul 17, 2004
Messages
2,838
dctag,
If you simply need a TRUE or FALSE, the If statement can be shortened to:

=AND(D42=1,G42+J42<=1)
 

Watch MrExcel Video

Forum statistics

Threads
1,119,137
Messages
5,576,299
Members
412,716
Latest member
Ardin
Top