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 / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

MSWord If Functions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 10 Feb 2005 01:15 GMT
I have a table created in word. How can I write a formula
to populate a cell in this table only if the adjacent cell
meets specific criteria.

Ie, IF(A2>0,A1,0)

The above statement doesn't work and produces a syntax
error.

Thanks
Greg
Greg Maxey - 10 Feb 2005 01:41 GMT
Greg,

Are you try to write a formula field in a table cell or VBA to perfrom the
comparison.

You could use a formula field in Cell A1 to evaluate A2  e.g,

{ =If(A2>0,5,0) }  with the meaning if A2 is greater than 0 then the value
of A1 is 5 Else A1 is 0.  You don't need a macro.

Signature

Greg Maxey/Word MVP
A Peer in Peer to Peer Support

> I have a table created in word. How can I write a formula
> to populate a cell in this table only if the adjacent cell
[quoted text clipped - 7 lines]
> Thanks
> Greg
Greg - 10 Feb 2005 21:50 GMT
Thanks. However, rather than the value 5 returned I'd like
to refer to a cell reference as the value will differ each
row.

Is this possible?

ie. instead of: =If(A2>0,5,0)
   have: IF(A2>0,A1,0)

Thanks.
Greg

>-----Original Message-----
>Greg,
[quoted text clipped - 20 lines]
>
>.
 
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.