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 / May 2008

Tip: Looking for answers? Try searching our database.

Multiple functions in one cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cgroninger - 09 May 2008 15:57 GMT
Is there a way to write a formula that will leave a cell blank if a
specified value is a positive number, but will calculate a percentage
if the value is a negative number?  I know how to write these formulas
separately, but cannot seem to get it right bringing them together in
one cell.  Not sure if this is even possible.

Signature

cgroninger

Arvi Laanemets - 09 May 2008 16:00 GMT
Hi

=IF(TrueCondition,Expression1,Expression2)

Like
=IF(X1="","",SUM(A:A))

Arvi Laanemets

> Is there a way to write a formula that will leave a cell blank if a
> specified value is a positive number, but will calculate a percentage
> if the value is a negative number?  I know how to write these formulas
> separately, but cannot seem to get it right bringing them together in
> one cell.  Not sure if this is even possible.
Gaurav - 09 May 2008 16:00 GMT
Something like

=if(B2="","",B2/A2)

the details you gave were only good to make assumptions. If this is not what
you want, post back with more details.

> Is there a way to write a formula that will leave a cell blank if a
> specified value is a positive number, but will calculate a percentage
> if the value is a negative number?  I know how to write these formulas
> separately, but cannot seem to get it right bringing them together in
> one cell.  Not sure if this is even possible.
Gaurav - 09 May 2008 16:04 GMT
Sorry it would be

=if(B2>0,"",B2/A2)

> Something like
>
[quoted text clipped - 8 lines]
>> separately, but cannot seem to get it right bringing them together in
>> one cell.  Not sure if this is even possible.
Peo Sjoblom - 09 May 2008 16:01 GMT
=IF(A2>0,"",percentage_formula)

Signature

Regards,

Peo Sjoblom

> Is there a way to write a formula that will leave a cell blank if a
> specified value is a positive number, but will calculate a percentage
> if the value is a negative number?  I know how to write these formulas
> separately, but cannot seem to get it right bringing them together in
> one cell.  Not sure if this is even possible.

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.