PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Discussion Statement

Reply

Statement

 
Thread Tools Rate Thread
Old 29-06-2003, 03:59 PM   #1
Steve Cohen
Guest
 
Posts: n/a
Default Statement


I'm lookg for a statement or function that will take the dollar amount of
cell A6 and make it positive if cell D6 equals "Win", and negative if D6
equals "Loss".

Thank you in advance.

Steve



  Reply With Quote
Old 29-06-2003, 04:10 PM   #2
J.E. McGimpsey
Guest
 
Posts: n/a
Default Re: Statement

One way:

=IF(D6="Win",ABS(A6), IF(D6="Loss",-ABS(A6),"")

which will return a null string if D6 is neither Win nor Loss.


If the dollar amount in A6 will always be positive, this can be
simplified to:

=IF(D6="Win",A6, IF(D6="Loss",-A6,"")



In article <vaCLa.40591$XE4.31645@fe05.atl2.webusenet.com>,
"Steve Cohen" <sacohen@bellsouth.net> wrote:

> I'm lookg for a statement or function that will take the dollar amount of
> cell A6 and make it positive if cell D6 equals "Win", and negative if D6
> equals "Loss".
>
> Thank you in advance.
>
> Steve
>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off