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

  • Thread starter Thread starter gma
  • Start date Start date
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?
 
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?
 
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
 
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"))
 
Back
Top