want to equal a cell number in a different cell with a negative si

G

gma

Problem:
Say I have a number in cell C1 and I want that number in cell D1 but with a
- sign in front of it exp: 20% in cell C1 in D1 I want -20%. CAn anyone help
me with this?
 
P

panther42

I know this is a really bad work around, but how about :

(In D1) = (C1-C1-C1)

Kev
 
G

gma

hey stefi
thanks...that worked, now how do i get rid of the "#value!" thats shows in
cell D1 if cell C1 has no value?
 
V

vezerid

The following formula will display 0 if C1 is blank:

=-N(C1)

If you want to leave the cell blank then you should use the more
complex:

=IF(C1<>"",-C1,"")

HTH
Kostis Vezerides
 
G

gma

David
Thanks a bunch...that worked.

David Biddulph said:
=IF(C1="","",-C1)
The above will work if by "no value" you mean an empty text string, but if
you have other text you may have problems.
You could use =IF(ISNUMBER(C1),-C1,"") or
=IF(C1="","",IF(ISNUMBER(C1),-C1,"invalid input"))
 

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