Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro to adjust formulas

How about a worksheet function

=SUM(OFFSET(c1,COUNTA(c:c)-12,,12))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Hargrove" wrote in message
...
I need to record a macro that will adjust my formulas from one month to

the next. This month, I would average C22:C33, next month C23:C34. The
references will have to be relative as I will make the changes to several
cells.

Another way to look at it if it's easier is that I want to average the

last 12 months, but will be adding a new row each month. When I add the
row, the formula adjusts to start from the same place and include the new
row. I want it to include the new row, but start one row down.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Macro to adjust formulas

Works great. I had to make a couple of adjustments to work with my specific data, but I was able to figure it out from your formula Bob

Thanks to both of you for your help.
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
Adjust macro puiuluipui Excel Discussion (Misc queries) 0 December 7th 09 10:32 PM
macro adjust Mylan Excel Worksheet Functions 1 November 18th 09 04:11 AM
Auto-adjust formulas se7098 Excel Worksheet Functions 3 May 5th 09 01:08 AM
adjust the range in a long column of formulas to accomodate new da Shannon Excel Worksheet Functions 2 August 11th 06 11:00 PM
Macro to adjust formulas Tom Ogilvy Excel Programming 0 May 12th 04 05:14 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"