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 / June 2006

Tip: Looking for answers? Try searching our database.

Using "double equal signs" in place of an IF statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott P - 21 Jun 2006 03:49 GMT
I am aware that you can evaluate two cells for equality using "double equal
signs" -- for example, by entering "=A1=B1" into cell C1 to test cells A1 and
B1 for equality.  Is there a way to use this "double equal signs" approach in
place of an IF statement?

More specifically, is it possible to create a formula such as "=A1=B1
AVERAGE(1,2) "NA""?  I have seen a formula such as this that did not include
commas between parameters -- any help on this front will be greatly
appreciated.
Harlan Grove - 21 Jun 2006 04:02 GMT
Scott P wrote...
>I am aware that you can evaluate two cells for equality using "double equal
>signs" -- for example, by entering "=A1=B1" into cell C1 to test cells A1 and
>B1 for equality.  Is there a way to use this "double equal signs" approach in
>place of an IF statement?

It's not double equal signs. The first equal sign indicates that the
cell contents is a formula while the second equal sign is a comparison
operator.

>More specifically, is it possible to create a formula such as "=A1=B1
>AVERAGE(1,2) "NA""?  I have seen a formula such as this that did not include
>commas between parameters -- any help on this front will be greatly
>appreciated.

Not possible. If you could accept 0 as the result when A1<>B1, you
could use

=(A1=B1)*AVERAGE(1,2)

or you could use some other function like CHOOSE, LOOKUP or INDEX
instead of IF, but there's no alternative to using one of these
functions if you want to return different type results (number or text)
depending on whether A1=B1 is TRUE or FALSE.
Scott P - 21 Jun 2006 04:13 GMT
Thank you, Harlan.  I appreciate your reply and assistance.

> Scott P wrote...
> >I am aware that you can evaluate two cells for equality using "double equal
[quoted text clipped - 20 lines]
> functions if you want to return different type results (number or text)
> depending on whether A1=B1 is TRUE or FALSE.
 
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



©2009 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.