Set Default Value in Cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I set the value in my work sheet cells so that data eneterd in the
cell autumaticlly converts to negative.

EG. if I typed in 25, I would liek the cell to show the value as - 25.

Prasad Gopinath
 
Prasad,

One way to accomplish this would be to capture a worksheet Change event and
after validating the changed cell is a numeric value, multiply it by negative
one.
 
I'd use two cells--one for the input and one for the value that I wanted to use:

Say A1 for the user input, then put this in B1:

=-abs(a1)

You could even hide that column B if you wanted to make it prettier.
 
Prasad,

If you don't need to use the numbers in any calculations later, you could
just fudge it by using a custom format to put a negative in front of the
numbers even if they're positive.

"-0;-0" would do it.

Eric
 

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

Back
Top