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 / New Users / January 2007

Tip: Looking for answers? Try searching our database.

More syntax headaches

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Xylas - 23 Jan 2007 14:32 GMT
Once again, I need the help of the clever people on this group in
parsing a formula. Here's the setup:

Cell A1 is the cell the formula goes in.

If cell AA7 equals the text value "YES" (itself the result of a
calculated formula), then A1=1.
If cell AA7 is zero, and AB7 contains an asterisk (again the result of
a calculated formula), then A1 is left blank.
If AA7 is zero and AB7 is blank, the A1=0
If AA7 contains any other numeric value besides zero, then that value
is reproduced in A1.

AB7 either contains an asterisk or is left blank, so testing whether
AB7="*" or testing whether it is nonblank will both work equally as
well.

Thanking you in advance.
KC Rippstein - 23 Jan 2007 14:51 GMT
=IF(AA7="YES",1,IF(AA7=0,IF(AB7="",0,""),IF(ISNUMBER(AA7),AA7,NA()))

If it helps you, you can break out these nested IF formulas vertically using
Alt+Enter and indenting spaces.  Sometimes that's easier to visualize the
logic.
=IF(AA7="YES",
   1,
   IF(AA7=0,
     IF(AB7="",
       0,
       "" ),
     IF(ISNUMBER(AA7),
       AA7,
       NA() )
 )

> Once again, I need the help of the clever people on this group in
> parsing a formula. Here's the setup:
[quoted text clipped - 14 lines]
>
> Thanking you in advance.
Pete_UK - 23 Jan 2007 14:57 GMT
Try this:

=IF(AA7=0,IF(AB7="*","",IF(AB7="",0,"not
specified")),IF(AA7="YES",1,IF(ISNUMBER(AA7),AA7,"not specified")))

You can see that there are a few situations that your description does
not cover.

Hope this helps.

Pete

> Once again, I need the help of the clever people on this group in
> parsing a formula. Here's the setup:
[quoted text clipped - 14 lines]
>
> Thanking you in advance.

Rate this thread:






 
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.