View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gma gma is offline
external usenet poster
 
Posts: 45
Default want to equal a cell number in a different cell with a negativ

David
Thanks a bunch...that worked.

"David Biddulph" wrote:

=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"))
--
David Biddulph

"gma" wrote in message
...
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?

"Stefi" wrote:

Enter in D1
=-C1

Regards,
Stefi

"gma" ezt Ã*rta:

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?