PC Review


Reply
Thread Tools Rate Thread

copy cell from above with opposite sign

 
 
=?Utf-8?B?YW5kcmVzZzE5NzU=?=
Guest
Posts: n/a
 
      20th Sep 2006
i have a column containing numbers, every other row there is an empty row, i
would like to copy the cell from above with the opposite sign to that empty
row, how can i do that with a formula or macro. So that i don't have to do
that one by one. Thanks a lot.
 
Reply With Quote
 
 
 
 
Biff
Guest
Posts: n/a
 
      20th Sep 2006
One way:

Assume your range is A2:A10. A3, 5, 7, 9 are empty

Select the range
Hit function key F5
Click the Special button
Select Blanks
OK

All the empty cell *within* the range are now selected and cell A3 is the
active cell.

Enter this formula in the formula bar:

=OFFSET(A3,-1,,)*-1

Hit CTRL ENTER

That will fill the empty cells *within* the range leaving the last entry to
be done manually (should be no big deal!)

Biff

"andresg1975" <(E-Mail Removed)> wrote in message
news:898C63B7-FB57-4D9D-85D0-(E-Mail Removed)...
>i have a column containing numbers, every other row there is an empty row,
>i
> would like to copy the cell from above with the opposite sign to that
> empty
> row, how can i do that with a formula or macro. So that i don't have to do
> that one by one. Thanks a lot.



 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      21st Sep 2006
Select the column.

F5>Special>Blanks>OK

Type an = sign in the active cell then point(left-click)in cell above and type
*-1 then hit CTRL + ENTER

You can copy those formula cells later as values.


Gord Dibben MS Excel MVP


On Wed, 20 Sep 2006 14:09:01 -0700, andresg1975
<(E-Mail Removed)> wrote:

>i have a column containing numbers, every other row there is an empty row, i
>would like to copy the cell from above with the opposite sign to that empty
>row, how can i do that with a formula or macro. So that i don't have to do
>that one by one. Thanks a lot.


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      21st Sep 2006
Another very similar way:

Select the range to fix
edit|goto|special|check blanks
type the equal sign
then hit the up arrow
then type *-1
and hit ctrl-enter to fill the blank cells with your formula.


andresg1975 wrote:
>
> i have a column containing numbers, every other row there is an empty row, i
> would like to copy the cell from above with the opposite sign to that empty
> row, how can i do that with a formula or macro. So that i don't have to do
> that one by one. Thanks a lot.


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy tab name to a cell or opposite RG Microsoft Excel Worksheet Functions 1 18th Feb 2010 10:21 AM
Copy only basic number without dollar sign or commas (or cell formatting)? StargateFanFromWork Microsoft Excel Programming 7 18th Sep 2007 06:55 PM
when i copy from a cd,words come opposite =?Utf-8?B?YWJkYWxsYWg=?= Microsoft Access External Data 1 23rd Jun 2006 03:34 PM
How do I convert numbers to the opposite sign? =?Utf-8?B?Q2luZHlhdFJXRA==?= Microsoft Excel Misc 3 24th Oct 2005 03:24 PM
Opposite of a $ sign in formulas? kuriti Microsoft Excel Misc 3 23rd Aug 2004 08:43 PM


Features
 

Advertising
 

Newsgroups
 


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