#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Autofill equations

I have a situation I've never run into. I have a simple equation like =C1-D1
located in cell A1.

I want to copy this equation from A1 through A100. I can use Autofill to do
it and it would update the cell reference from C2 to C3 to C4 etc.

But what I want is that as I copy the equation down, the column references
would update rather than the row references. So as I copy from A1 to A2, the
equation would then read =D1-E1.

Any help would be appreciated.

-Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Autofill equations

Try this:

=OFFSET($B$1,0,ROW(A1))-OFFSET($C$1,0,ROW(A1))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Eric" wrote:

I have a situation I've never run into. I have a simple equation like =C1-D1
located in cell A1.

I want to copy this equation from A1 through A100. I can use Autofill to do
it and it would update the cell reference from C2 to C3 to C4 etc.

But what I want is that as I copy the equation down, the column references
would update rather than the row references. So as I copy from A1 to A2, the
equation would then read =D1-E1.

Any help would be appreciated.

-Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Autofill equations

Put this in A1 instead of C1-D1:
=OFFSET($A$1,0,ROW()*2,1)-OFFSET($A$1,0,ROW()*2+1,1)
this IS C1-D1 but as you fill down, it does what you requested...

"Eric" wrote in message
...
I have a situation I've never run into. I have a simple equation like
=C1-D1
located in cell A1.

I want to copy this equation from A1 through A100. I can use Autofill to
do
it and it would update the cell reference from C2 to C3 to C4 etc.

But what I want is that as I copy the equation down, the column references
would update rather than the row references. So as I copy from A1 to A2,
the
equation would then read =D1-E1.

Any help would be appreciated.

-Eric



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Autofill equations

Try this:

=INDIRECT(ADDRESS(1,ROW()+3))-INDIRECT(ADDRESS(1,ROW()+4))

HTH
Elkar

"Eric" wrote:

I have a situation I've never run into. I have a simple equation like =C1-D1
located in cell A1.

I want to copy this equation from A1 through A100. I can use Autofill to do
it and it would update the cell reference from C2 to C3 to C4 etc.

But what I want is that as I copy the equation down, the column references
would update rather than the row references. So as I copy from A1 to A2, the
equation would then read =D1-E1.

Any help would be appreciated.

-Eric

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Autofill equations

OP is not skipping 2 columns, thus no need for the "*2" operators.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Bob Umlas" wrote:

Put this in A1 instead of C1-D1:
=OFFSET($A$1,0,ROW()*2,1)-OFFSET($A$1,0,ROW()*2+1,1)
this IS C1-D1 but as you fill down, it does what you requested...

"Eric" wrote in message
...
I have a situation I've never run into. I have a simple equation like
=C1-D1
located in cell A1.

I want to copy this equation from A1 through A100. I can use Autofill to
do
it and it would update the cell reference from C2 to C3 to C4 etc.

But what I want is that as I copy the equation down, the column references
would update rather than the row references. So as I copy from A1 to A2,
the
equation would then read =D1-E1.

Any help would be appreciated.

-Eric




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
Equations [email protected] Excel Discussion (Misc queries) 8 February 23rd 07 07:46 PM
Equations Result in 0 skimna7 Excel Discussion (Misc queries) 6 March 23rd 06 11:10 PM
Trendline Equations Steve Morris Charts and Charting in Excel 1 January 11th 06 04:56 PM
Autofill: Need to autofill one week block, (5) weekday only into cells. dstock Excel Discussion (Misc queries) 1 June 17th 05 08:21 PM
Function equations Judge Excel Worksheet Functions 5 January 24th 05 07:11 AM


All times are GMT +1. The time now is 08: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"