cells a neg. when a pos. is entered

Billionzz

Board Regular
Joined
Jun 18, 2002
Messages
99
I'm trying to make a column have negative numbers like a checkbook ledger.I'm

If I entered $12.00 into a cell in that column I would like it to actually be ($12.00).

I know this is simple and I have did it several times before but for some reason I can't get it.

I'm using excel 98 version.

Thanks,
 
It works great,

Thank you very much, I was looking for the answer for hours. You know how you get on something and don't want to stop until you figure it out.

Have a nice day

Yup, I understand and don't give up.

Have a nice day.
 
Upvote 0

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
This code works fine.

but - I have a problem with it.

I am moving data in an excell file to and from my pc to my pocket pc (tmobile mda).

On the pocket pc the program is pocket excel and it doesn't accept a few functions. So the code doesn't work, is there another way to accomplish the same thing?

Thanks,
 
Upvote 0
.........alternatively you could just custom format the column in question......

1.Right click a cell at the top of the column
2.Select "Format cells"
3.Select the "Number" tab if not already selected
4.From the bottom of the list select "Custom"
5.Select any format, then in the "Type" window, overwrite the format you've just selected with :
($#,##0.00)
You can copy the above then paste it in by using Ctrl + V
6. Click OK.

Now, any number you type in will be formatted as you've requested. You don't have to enter the $ sign, as it's already included in the format.

Once you've done this, and before putting any data in the cell, use the drag handle to copy the format all the way down the column as far as you wish, or use copy, then paste special / formats for the rest of the column.

HTH
 
Upvote 0
That works, it makes the number look like this ($10.00).

But

When that number is used in an equation it comes out a positive number.

For example:
Sum $10.00+$5.00 = $15.00
 
Upvote 0
This code works fine.

but - I have a problem with it.

I am moving data in an excell file to and from my pc to my pocket pc (tmobile mda).

On the pocket pc the program is pocket excel and it doesn't accept a few functions. So the code doesn't work, is there another way to accomplish the same thing?

Thanks,

Alternatively, add one column, say column F and enter
=-ABS(E1)
and calculate with this column.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top