A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel - How to abs entire column



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2004, 03:05 PM
John E.
external usenet poster
 
Posts: n/a
Default Excel - How to abs entire column

I'm new to Excel and would like to change all negative numbers appearing
in a non calculated column to positive numbers. The problem results
from a bug exporting Quickbooks Pro invoices to Excel, in the
"quantities" column, and would like a quick macro to fix, versus
changing each column entry to a positive number by hand.

Thanks,
John


---
Message posted from http://www.ExcelForum.com/

  #3  
Old April 29th, 2004, 03:46 PM
Jim Rech
external usenet poster
 
Posts: n/a
Default Excel - How to abs entire column

Select the range and run this:

Sub ToPos()
Dim Cell As Range
For Each Cell In Selection
Cell.Value = Abs(Cell.Value)
Next
End Sub


--
Jim Rech
Excel MVP
"John E. " wrote in message
...
| I'm new to Excel and would like to change all negative numbers appearing
| in a non calculated column to positive numbers. The problem results
| from a bug exporting Quickbooks Pro invoices to Excel, in the
| "quantities" column, and would like a quick macro to fix, versus
| changing each column entry to a positive number by hand.
|
| Thanks,
| John
|
|
| ---
| Message posted from http://www.ExcelForum.com/
|


  #4  
Old April 29th, 2004, 03:50 PM
Charlie
external usenet poster
 
Posts: n/a
Default Excel - How to abs entire column

John,

If your numbers are formatted -15, -125 etc. then
highlight the column containing the numbers and do an
Edit/Replace with a - in the 'Find what' and nothing in
the 'Replace with' and select replace all.

Charlie O'Neill
-----Original Message-----
I'm new to Excel and would like to change all negative

numbers appearing
in a non calculated column to positive numbers. The

problem results
from a bug exporting Quickbooks Pro invoices to Excel, in

the
"quantities" column, and would like a quick macro to fix,

versus
changing each column entry to a positive number by hand.

Thanks,
John


---
Message posted from http://www.ExcelForum.com/

.

  #5  
Old April 29th, 2004, 11:22 PM
Gord Dibben
external usenet poster
 
Posts: n/a
Default Excel - How to abs entire column

Enter -1 in a cell.

Copy this then select your negative numbers(column of) and Paste
SpecialMultiplyOKEsc.

Delete the -1 from the the cell.

Gord Dibben Excel MVP

On Thu, 29 Apr 2004 09:05:30 -0500, John E.
wrote:

I'm new to Excel and would like to change all negative numbers appearing
in a non calculated column to positive numbers. The problem results
from a bug exporting Quickbooks Pro invoices to Excel, in the
"quantities" column, and would like a quick macro to fix, versus
changing each column entry to a positive number by hand.

Thanks,
John


---
Message posted from http://www.ExcelForum.com/


  #6  
Old May 5th, 2004, 12:38 AM
John E.
external usenet poster
 
Posts: n/a
Default Excel - How to abs entire column

Thanks for all your help. Will put these ideas to work.
John


---
Message posted from http://www.ExcelForum.com/

  #7  
Old May 5th, 2004, 10:08 AM
Gordon
external usenet poster
 
Posts: n/a
Default Excel - How to abs entire column

Jim Rech cogitated deeply and scribbled thusly:

Select the range and run this:

Sub ToPos()
Dim Cell As Range
For Each Cell In Selection
Cell.Value = Abs(Cell.Value)
Next
End Sub


REALLY? The OP said he "was NEW" to Excel! Why not give the simple
solution like paste-special-multiply with -1 ?

--
gordonATgbpcomputingDOTcoDOTuk

To email me replace the obvious!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:16 AM.


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