If function

L

Littlebird

How can I do this ?

If d2=Refund then negate the value in e2.

ie make it a negative number

Cheers
 
D

Duke Carey

You can actually have VBA code run that will check column D's values and
change the sign in the corresponding value in column E. However, THAT IS A
BAD IDEA. It's usually important to preserve the original value, so you know
whether you've flipped the sign.

Assuming that you *should* keep the value in E2, then in F2 enter the formula:

=E2*IF(D2="Refund",-1,1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top