LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Dynamic reference in OFFSET function

Hello All,

I am trying to use a dynamic reference for an OFFSET fucntion but am
not being able to.

The following is the format of my data:

A B
Day Sales
1 10
2 20
3 12
4 24
5 21

A new row is added to this sheet with every day of sales.
Now I need to create a report on the average sales in the last 2 days

I had the following from when I was calculating average sales (on all
days)
=AVERAGE(OFFSET(Data!$B$2,0,0,COUNT(Data!$B:$B),1) )

Now to calculate the last 2 day average i will need a dynamic value
for the "reference"
argument of the OFFSET function. I cant seem to figure this one.

Your help will be greatly appreciated!

Thanks!
manu

 
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
Dynamic Reference Cell in Offset Formula MarkM Excel Discussion (Misc queries) 3 February 7th 07 05:11 PM
Offset function problem-Dynamic range MarkM Excel Discussion (Misc queries) 1 November 11th 06 02:41 AM
3D function with dynamic reference smaruzzi Excel Worksheet Functions 11 October 12th 06 06:32 AM
Offset function and Dynamic Ranges SandyLACA Excel Discussion (Misc queries) 2 August 2nd 06 11:07 PM
Dynamic Function Reference Question excel newbie Excel Discussion (Misc queries) 1 April 20th 05 08:09 PM


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