Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default adding columns to formula

I have a sheet that has a bunch of columns that have data.
At the end of each column is an average for the
information in each row. What I want to do is to add more
columns. When I add the column I want the formula in the
last column to add in the column that I just added. How
can I do this?
Thanks,

David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default adding columns to formula

Maybe you could just change the formula:

If your formula were in H1 and looked like:
=AVERAGE(A1:G1)
you could rewrite it like this:
=AVERAGE(A1:OFFSET(H1,0,-1))

Then if you insert a new column H (and shift things to the right one column),
the formula will still point at A1 to the column directly to the left of the
cell with the formula.

David McRitchie also has notes at:
http://www.mvps.org/dmcritchie/excel/offset.htm

You may want to read more about it.

david wrote:

I have a sheet that has a bunch of columns that have data.
At the end of each column is an average for the
information in each row. What I want to do is to add more
columns. When I add the column I want the formula in the
last column to add in the column that I just added. How
can I do this?
Thanks,

David


--

Dave Peterson

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
Formula for adding Columns Gary New Users to Excel 7 February 15th 09 03:31 AM
adding columns by formula Rivers Excel Discussion (Misc queries) 1 February 9th 09 12:57 PM
Adding 8 columns by formula Rivers Excel Discussion (Misc queries) 1 February 9th 09 12:29 PM
formula for adding / subtracting two columns . jm New Users to Excel 2 May 24th 06 10:50 AM
Adding columns (one with a formula) PaulStroik New Users to Excel 7 June 27th 05 10:32 PM


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