PC Review


Reply
Thread Tools Rate Thread

dragging formulas acros adjacent cells

 
 
transkawa
Guest
Posts: n/a
 
      27th Sep 2010

I don't know if this behavior can be adjusted. Say I have a formula in
cell C2 like this: =SUM(A2,B2). when i drag the fill handle to the cell
to the right and choose copy cells from the auto fill options, the
formula changes to: =SUM(B2,C2) returning a different result. It still
changes also when the fill handle is dragged downwards.
How can I drag the fill handle and copy cells with auto fill and still
get the same formula in the adjacent cell or new cell.
TIA

--
two things i learnt from life:
the hardest things are the simplest of all; they just take time
the simple things are not hard at all
So I just try to KISS it.
http://emekadavid-solvingit.blogspot.com
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      28th Sep 2010
See help on Absolute and Relative cell referencing.

In your sample post...............=SUM($A$2,$B$2) would preserve the references.

A2 is relative

$A2 is absolute column, relative row

A$2 is relative column, absolute row

$A$2 is absolute row and column.

BTW.............=A2+B2 is same as =SUM(A2,B2)


Gord Dibben MS Excel MVP

On Mon, 27 Sep 2010 14:51:46 +0100, transkawa <(E-Mail Removed)> wrote:

>
>I don't know if this behavior can be adjusted. Say I have a formula in
>cell C2 like this: =SUM(A2,B2). when i drag the fill handle to the cell
>to the right and choose copy cells from the auto fill options, the
>formula changes to: =SUM(B2,C2) returning a different result. It still
>changes also when the fill handle is dragged downwards.
>How can I drag the fill handle and copy cells with auto fill and still
>get the same formula in the adjacent cell or new cell.
>TIA

 
Reply With Quote
 
Mynda Treacy
Guest
Posts: n/a
 
      28th Sep 2010
What you need to do is enter the formula as an absolute reference. You can read a short tutorial explaining how to use Absolute References in Excel here:

http://www.myonlinetraininghub.com/e...e-missing-link

You can also get free Microsoft Office Online Training, with over 10 hours of video tutorials on Excel, Word & Outlook.

Submitted via EggHeadCafe - Software Developer Portal of Choice
Auto-Generate Code for LINQ to SQL Repository Pattern using T4
http://www.eggheadcafe.com/tutorials...-using-t4.aspx
 
Reply With Quote
 
transkawa
Guest
Posts: n/a
 
      12th Oct 2010
In article <(E-Mail Removed)>,
(E-Mail Removed) says...
>
> See help on Absolute and Relative cell referencing.
>
> In your sample post...............=SUM($A$2,$B$2) would preserve the references.
>
> A2 is relative
>
> $A2 is absolute column, relative row
>
> A$2 is relative column, absolute row
>
> $A$2 is absolute row and column.
>
> BTW.............=A2+B2 is same as =SUM(A2,B2)
>
>
> Gord Dibben MS Excel MVP
>
> On Mon, 27 Sep 2010 14:51:46 +0100, transkawa <(E-Mail Removed)> wrote:
>
> >
> >I don't know if this behavior can be adjusted. Say I have a formula in
> >cell C2 like this: =SUM(A2,B2). when i drag the fill handle to the cell
> >to the right and choose copy cells from the auto fill options, the
> >formula changes to: =SUM(B2,C2) returning a different result. It still
> >changes also when the fill handle is dragged downwards.
> >How can I drag the fill handle and copy cells with auto fill and still
> >get the same formula in the adjacent cell or new cell.
> >TIA


thanks. I think it didn't occur to me to insert the $ for both the
column and row references. thanks for the reminder.
nnaemeka david

--
Never question, keep asking
234 702 866 8957
http://emekadavid-solvingit.blogspot.com
 
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 formulas from non-adjacent cells Mike O. Microsoft Excel Misc 0 22nd Oct 2009 06:21 PM
Excel formulas - comparing adjacent cells Bryan Gnidrah Microsoft Excel Worksheet Functions 5 13th Aug 2009 06:53 PM
Formulas won't increment when dragging to adjacent cells? t2inc Microsoft Excel Misc 3 10th Apr 2009 07:01 PM
Dragging formulas to new cells Greg Maxey Microsoft Excel Discussion 7 30th Jul 2007 04:56 AM
copying/dragging a formula to adjacent cells in Excel =?Utf-8?B?U3RldmUgQnJlbm5hbg==?= Microsoft Excel Misc 1 17th Apr 2007 06:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:07 PM.