Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Carole O
 
Posts: n/a
Default Subtracting Negative Numbers

I've looked at other similar questions and responses (# VALUE), etc, and
tried the suggestions (N(C2)-N(D2), ABS, Text to columns, =C2-D2, and still
get the #VALUE. Some of the numbers in C2 are negative, but even two
positive numbers in C2 and D2 result in the # VALUE response.

The cells are formatted as numbers. Any ideas?

Carole O




  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If the cells were originally text, and you changed format, then the value in
that cell is still text (that looks like numbers).

Try formatting as General (already done)
then re-entering the value (F2 followed by an enter key should be sufficient)

If that still fails, try retyping the value. If you've pasted your values from
a web page, you may have gotten extra characters in the cell Spaces or HTML
non-breaking spaces.

David McRitchie has a macro to clean this kind of stuff:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Carole O wrote:

I've looked at other similar questions and responses (# VALUE), etc, and
tried the suggestions (N(C2)-N(D2), ABS, Text to columns, =C2-D2, and still
get the #VALUE. Some of the numbers in C2 are negative, but even two
positive numbers in C2 and D2 result in the # VALUE response.

The cells are formatted as numbers. Any ideas?

Carole O


--

Dave Peterson
  #3   Report Post  
Carole O
 
Posts: n/a
Default

Thanks, Dave. I wasn't told by the person who presented me with this problem
that he had downloaded it from the company intranet (thus the text). I
checked out David's site, and found the macro which cleared this up. I can
also use it on other similar situations (downloading from Great Plains
software), so you have helped me in more ways than one!

Thanks,
Carole
"Dave Peterson" wrote:

If the cells were originally text, and you changed format, then the value in
that cell is still text (that looks like numbers).

Try formatting as General (already done)
then re-entering the value (F2 followed by an enter key should be sufficient)

If that still fails, try retyping the value. If you've pasted your values from
a web page, you may have gotten extra characters in the cell Spaces or HTML
non-breaking spaces.

David McRitchie has a macro to clean this kind of stuff:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

And if you're new to macros, you may want to read David's intro:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Carole O wrote:

I've looked at other similar questions and responses (# VALUE), etc, and
tried the suggestions (N(C2)-N(D2), ABS, Text to columns, =C2-D2, and still
get the #VALUE. Some of the numbers in C2 are negative, but even two
positive numbers in C2 and D2 result in the # VALUE response.

The cells are formatted as numbers. Any ideas?

Carole O


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating growth with negative numbers Tsipi4me Excel Worksheet Functions 3 April 3rd 23 12:12 PM
Why cant you show negative numbers in parentheses? Bruce Excel Discussion (Misc queries) 5 December 6th 05 04:26 PM
Converting negative numbers in a range of cells to zero Dede Excel Discussion (Misc queries) 3 January 14th 05 06:23 PM
Negative Numbers Glenda Excel Discussion (Misc queries) 3 November 26th 04 02:06 PM
Formula to calculate only the negative numbers Dawn Boot-Bunston Excel Worksheet Functions 5 November 24th 04 09:57 PM


All times are GMT +1. The time now is 12:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"