LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Sean Bartleet
 
Posts: n/a
Default Average to date

Hi,

I have a number of items that I track monthly costs on in rows 7 to 21. In
columns C to N are the months Jan to Dec. I would like to average the costs
to a specified month. As this month can change It is entered in Cell O6. At
present I match the month specified in O6 and add that to 66 to get the
character value of the column I am interested in. Then I use indirect to
create the reference I require the average to be done on.

vis:=AVERAGE(INDIRECT("C7:"&CHAR(MATCH(O6,C5:N5,0) +66)&"7"))

Now I want to copy this down to the 10 rows below. So that it works
correctly I will need to create references to the rows as well as the
columns. This can be done with some more indirect functions but I was hoping
that there was an easier way.

Any suggestions will be appreciated.

Regards.

Sean


 
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
How do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
52 week average based on date tomandrobyn Excel Discussion (Misc queries) 5 June 3rd 05 07:34 PM


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