#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Updating Formulas

Hi,

I have a large workbook of sales data. It is broken down into weekly sales
by number of sales and dollar value. So A&B are one week, and C&D are the
next week and so forth.

My last column I need to average the number of sales and the dollar value of
sales for the last five weeks. Is there an easier way to create formulas
every week than manually creating formulas? Is there a formula I can use to
reference the five specific cells I need or VBA?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Updating Formulas

Hi

One way.

Assuming you place your averages in columns A and B, and that you insert 2
new columns each week at C and D to take the new data.
i.e. you are continuously pushing older data across the screen.

Also assuming you have header in row 1 and that your data starts in row 2.
Enter the following array formula into A2

{=SUM((OFFSET($A$3,0,2,1,10)*(MOD(COLUMN(OFFSET($A $3,0,2,1,10)),2)=1)))/5}

To enter (or amend( an array formula, use Control,+Shift+Enter (CSE) instead
of just Enter.
When you use CSE, Excel will insert the curly braces { } for you. Do not
type them yourself.

Repeat the same formula in cell B2
Copy A2 and B2 down the sheet as far as required.

When you first insert 2 new blank columns, the values in A and B will
temporarily reduce (as the total of 4 weeks is divide by 5, but will adjust
back to the correct value as soon as new data is entered into the blank
columns C and D.
--

Regards
Roger Govier

"cardosol" wrote in message
...
Hi,

I have a large workbook of sales data. It is broken down into weekly
sales
by number of sales and dollar value. So A&B are one week, and C&D are the
next week and so forth.

My last column I need to average the number of sales and the dollar value
of
sales for the last five weeks. Is there an easier way to create formulas
every week than manually creating formulas? Is there a formula I can use
to
reference the five specific cells I need or VBA?


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
Formulas updating Corinnak Excel Worksheet Functions 1 December 26th 07 05:58 PM
Formulas aren't updating ANTHER Excel Worksheet Functions 2 May 26th 07 06:36 PM
Updating formulas craftcenter Excel Worksheet Functions 3 March 31st 06 12:50 AM
formulas not updating john_mc Excel Discussion (Misc queries) 0 March 1st 06 12:47 AM
Formulas not updating David Excel Discussion (Misc queries) 0 November 10th 05 02:33 AM


All times are GMT +1. The time now is 05:51 PM.

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"