Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

IF, then

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Puffin1 - 24 Sep 2007 17:34 GMT
How do I write the formula for "If A1 is true, then B1 is also true and the
result = A1+B1
Mike - 24 Sep 2007 17:40 GMT
Try this example will test if A1=1 And B1=2 Then Sum A1 + B1 =3
=IF(AND(A1=1,B1=2),A1+B1,"False")

> How do I write the formula for "If A1 is true, then B1 is also true and the
> result = A1+B1
JE McGimpsey - 24 Sep 2007 17:55 GMT
XL interprets any non-zero numeric value as TRUE and zero as FALSE, so,
literally:

   =IF(AND(A1<>0,B1<>0),A1+B1,"Something else")

OTOH, XL coerces TRUE to 1 in math formulae and FALSE to 0, so "if A1 is
true then B1 is also true" translates to

B1:     =IF(A1=TRUE, TRUE, "Something Else")

and

result  = IF(A1=TRUE, A1+B1,"Something Else Again")

which will always return 2 (TRUE+TRUE===> 1+1).

> How do I write the formula for "If A1 is true, then B1 is also true and the
> result = A1+B1
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.