+ Reply to Thread
Results 1 to 6 of 6

Using Offset function, want automatic update of 30 points of most recent data

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Using Offset function, want automatic update of 30 points of most recent data

    Hi,

    I have a spreadsheet with approximately 20 columns of numerical data (including some blank cells) which I update with more daily values every couple of days. One of the columns is the date. There are around 800 data-points in each column.
    I use offset and counta to define the ranges of the columns which means my line and scatter charts update automatically as I input more data:

    OFFSET('Sheet 1'!$K$4,0,0,COUNTA('Sheet 1'!$K:$K)-1)

    I want to somehow automatically select the last 30 data points to use in the charts, I want these 30 data points to automatically update as I add more data. Is there a formula I can use to do this, or do I need to visit the world of VBA?

    Thanks
    Bob

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: Using Offset function, want automatic update of 30 points of most recent data

    Try:
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Using Offset function, want automatic update of 30 points of most recent data

    Try

    OFFSET('Sheet 1'!$K$4,COUNTA('Sheet 1'!$K:$K)-31,0,30)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Using Offset function, want automatic update of 30 points of most recent data

    =OFFSET(INDEX(K:K,LOOKUP(2,1/((K1:K100<>"")*1),ROW(K1:K100))),,,-30,1)
    try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,904

    Re: Using Offset function, want automatic update of 30 points of most recent data

    or try
    =OFFSET(INDEX(K:K,LOOKUP(2,1/((K:K<>"")*1),ROW(K:K))),,,-30,1)

  6. #6
    Registered User
    Join Date
    02-11-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    5

    Re: Using Offset function, want automatic update of 30 points of most recent data

    Thank you guys, all these work well.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data tables update automatically with most recent data
    By jworkman7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2012, 03:54 PM
  2. [SOLVED] Automatic update function
    By gmacdaddy89 in forum Excel General
    Replies: 1
    Last Post: 03-23-2012, 03:51 PM
  3. Replies: 0
    Last Post: 10-26-2011, 04:31 AM
  4. [SOLVED] Automatic Inclusion of Comments on Chart Data Points??
    By Mike P. from KC in forum Excel General
    Replies: 0
    Last Post: 04-06-2006, 11:40 AM
  5. Automatic updating with most recent data
    By RobPot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2005, 08:39 PM

Tags for this Thread

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