Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How do I convert a column of numbers from positive to negative?

I have a worksheet with a column indicating "Receipts," "Deliveries," "In,"
and "Out." A second column has a series of values, all positive numbers. I
need to change all the "Deliveries" and "Out" to negative values. I have
tried filtering on "Deliveries" and "Out" and then using the Paste Special
function, but when I remove the filter I find that every value has been
changed to negative, not just the filtered records.

Any suggestions on how to change just the desired values from positive to
negative?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default How do I convert a column of numbers from positive to negative?

Insert new column next to number (helper column)
I will assume text in A, numbers in B
In C2 enter =IF(OR(A2="A",A2="B"),-1,1)*B2
replace A and B by your text
Copy down column
Select all the new formulas in C and Copy; use Paste Special Formulas
Delete old B column
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"BJ" wrote in message
...
I have a worksheet with a column indicating "Receipts," "Deliveries,"
"In,"
and "Out." A second column has a series of values, all positive numbers.
I
need to change all the "Deliveries" and "Out" to negative values. I have
tried filtering on "Deliveries" and "Out" and then using the Paste Special
function, but when I remove the filter I find that every value has been
changed to negative, not just the filtered records.

Any suggestions on how to change just the desired values from positive to
negative?



  #3   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default How do I convert a column of numbers from positive to negative

Thank you very much! That was a huge help!

"Bernard Liengme" wrote:

Insert new column next to number (helper column)
I will assume text in A, numbers in B
In C2 enter =IF(OR(A2="A",A2="B"),-1,1)*B2
replace A and B by your text
Copy down column
Select all the new formulas in C and Copy; use Paste Special Formulas
Delete old B column
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"BJ" wrote in message
...
I have a worksheet with a column indicating "Receipts," "Deliveries,"
"In,"
and "Out." A second column has a series of values, all positive numbers.
I
need to change all the "Deliveries" and "Out" to negative values. I have
tried filtering on "Deliveries" and "Out" and then using the Paste Special
function, but when I remove the filter I find that every value has been
changed to negative, not just the filtered records.

Any suggestions on how to change just the desired values from positive to
negative?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default How do I convert a column of numbers from positive to negative?

Autofilter the data as you want then copy a cell with -1 in it, then select
the filtered data and select Edit GoTo Special and select Visible cells
only then do your Paste Special Multiply

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"BJ" wrote in message
...
I have a worksheet with a column indicating "Receipts," "Deliveries,"
"In,"
and "Out." A second column has a series of values, all positive numbers.
I
need to change all the "Deliveries" and "Out" to negative values. I have
tried filtering on "Deliveries" and "Out" and then using the Paste Special
function, but when I remove the filter I find that every value has been
changed to negative, not just the filtered records.

Any suggestions on how to change just the desired values from positive to
negative?



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
Excel, change column of negative numbers to positive numbers? Nita New Users to Excel 3 November 27th 07 05:54 AM
Excel 2002 : Convert Positive Numbers to Negative Numbers ? Mr. Low Excel Discussion (Misc queries) 2 November 6th 06 04:30 PM
Convert a column of numbers from positive to negative in Excel JRoseen Excel Discussion (Misc queries) 4 July 7th 06 08:18 PM
convert negative numbers to positive numbers and vice versa bill gras Excel Worksheet Functions 4 December 7th 05 02:39 AM
How do I change a column of 500 numbers from positive to negative JKB Excel Discussion (Misc queries) 2 September 28th 05 05:16 PM


All times are GMT +1. The time now is 01:15 PM.

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

About Us

"It's about Microsoft Excel"