PC Review


Reply
Thread Tools Rate Thread

Copying formulas by dragging fill box

 
 
drlogarithm
Guest
Posts: n/a
 
      8th Apr 2008
I know that dragging a formula down will automatically change the
rownumber within the formula and dragging the formula to the right
will change the column letter. Is there a way to do vice-versa, i.e.,
drag to the right and change the row number?

ex. C2^2 (value of C2 squared)
drag this down and get C3^2
drag this to the right and get D2^2

......looking for a way to drag to the right and go from C2^2 to C3^2
or drag down and go from C2^2 to D2^2 (just opposite of normal - kind
of like me!)
 
Reply With Quote
 
 
 
 
PCLIVE
Guest
Posts: n/a
 
      8th Apr 2008
This should achieve what you want.

=INDIRECT("C" & COLUMN(B2))^2

HTH,
Paul

--

"drlogarithm" <(E-Mail Removed)> wrote in message
news:fb96e254-2cd6-4d2f-b74b-(E-Mail Removed)...
>I know that dragging a formula down will automatically change the
> rownumber within the formula and dragging the formula to the right
> will change the column letter. Is there a way to do vice-versa, i.e.,
> drag to the right and change the row number?
>
> ex. C2^2 (value of C2 squared)
> drag this down and get C3^2
> drag this to the right and get D2^2
>
> .....looking for a way to drag to the right and go from C2^2 to C3^2
> or drag down and go from C2^2 to D2^2 (just opposite of normal - kind
> of like me!)



 
Reply With Quote
 
drlogarithm
Guest
Posts: n/a
 
      8th Apr 2008
I can't get your formula to work. Let's say I have the numbers 2, 3,
4 in C2, C3, C4 and I type:

=C2^2

into cell D2, then of course I get 4. Dragging this down autofills
the formula to give =C3^2 in cell D3 which displays as
9 and =C4^2 in cell D4 displayed as 16. I would like to simply (grab
and drag if possible) copy cell D2 which is =C2^2
and move to the right to get =C3^2, =C4^2, etc. Currently, grabbing
and dragging to the right changes the column ref
rather than the row ref.

Where do I enter your formula and why is B2 referenced?
 
Reply With Quote
 
PCLIVE
Guest
Posts: n/a
 
      8th Apr 2008
That formula works for me when I drag it accross. What should happen when
you drag this formula across is, B2 will change to C2, D2, etc.
If you put this into a cell =COLUMN(B2) you will get 2. That formula
returns the column number for the address that you provide (in this case,
"B2"). The INDIRECT function allows you to maintain the column reference as
you want and then gets the row reference from the COLUMN function. Since
your data starts at row two, that is why we start with column two (B2).
Note the "2" in "B2" has no significance other than to complete a real cell
address.

So that gives us the following formula. Are you sure it doesn't work? Can
you give details?

=INDIRECT("C" & COLUMN(B2))^2

Regards,
Paul

--

"drlogarithm" <(E-Mail Removed)> wrote in message
news:4dbdeae0-7b24-4119-92b0-(E-Mail Removed)...
>I can't get your formula to work. Let's say I have the numbers 2, 3,
> 4 in C2, C3, C4 and I type:
>
> =C2^2
>
> into cell D2, then of course I get 4. Dragging this down autofills
> the formula to give =C3^2 in cell D3 which displays as
> 9 and =C4^2 in cell D4 displayed as 16. I would like to simply (grab
> and drag if possible) copy cell D2 which is =C2^2
> and move to the right to get =C3^2, =C4^2, etc. Currently, grabbing
> and dragging to the right changes the column ref
> rather than the row ref.
>
> Where do I enter your formula and why is B2 referenced?



 
Reply With Quote
 
drlogarithm
Guest
Posts: n/a
 
      8th Apr 2008
This does work for me now, thank you for the explanation - otherwise I
was using B2 in the COLUMN function as a reference for data but I see
it as the row reference now.....B = 2, C = 3, etc.

Thanks again.
 
Reply With Quote
 
PCLIVE
Guest
Posts: n/a
 
      9th Apr 2008
You're welcome.
Thanks for the feedback.

Paul

--

"drlogarithm" <(E-Mail Removed)> wrote in message
news:1c625b53-6ca5-4842-9645-(E-Mail Removed)...
> This does work for me now, thank you for the explanation - otherwise I
> was using B2 in the COLUMN function as a reference for data but I see
> it as the row reference now.....B = 2, C = 3, etc.
>
> Thanks again.



 
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
copying formulas with fill handle Bob L Microsoft Excel New Users 4 30th Mar 2010 04:49 PM
Dragging/Copying Formulas in Excel 2007 DebPgh Microsoft Excel Misc 3 25th Mar 2010 07:52 PM
formulas won't fill by dragging rjm8449 Microsoft Excel Misc 4 1st Oct 2009 12:11 PM
Dragging/Copying Lookup Formulas Paul Sheppard Microsoft Excel Misc 5 7th Apr 2006 02:25 PM
Dragging/copying formulas =?Utf-8?B?R2VvcmdlIFN0YXVmZmVy?= Microsoft Excel Misc 4 18th Oct 2005 09:44 AM


Features
 

Advertising
 

Newsgroups
 


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