+ Reply to Thread
Results 1 to 3 of 3

offset function

  1. #1
    Registered User
    Join Date
    02-12-2008
    Posts
    11

    offset function

    Hi Guys

    Any idea on how to perfrom the following. I have a chart which looks at data for monday - friday i.e week 38. The date format is dd/mm/yy. I then put in the following weeks data i.e week 39 and only want the chart to show the updated weeks data. If I use the offet function as commonly explained, the chart will update but also have the previous weeks data included of which I do not want to display.

    Example
    mon 25
    tue 12
    wed 13
    thu 67
    fri 23
    mon 67
    tue 25
    wed 45
    thu 67
    fri 34


    Therefore five rows of data will be the weeks data for my chart. Once data has been inputed on the 6th row I want the chart to look at the data for the following five days with the 6th row being a Monday. If this helps in the formula, every 6th row is a monday as data is not taken over the weekend.

    I hope this makes sense and hope someone out there can help!

    Thanks
    Last edited by VBA Noob; 10-25-2008 at 11:49 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Post a workbook?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480
    Assuming your data table starts in A2:B2 with header in row 1.
    The following named range will report last 5 data points.

    ChtLabel: =OFFSET(Sheet1!$A$2,COUNTA(Sheet1!$A:$A)-5,0,5,1)

    ChtData: =OFFSET(ChtLabel,0,1)
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1