+ Reply to Thread
Results 1 to 4 of 4

Array formula that uses last written cell

  1. #1
    Registered User
    Join Date
    11-01-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Array formula that uses last written cell

    Hi,

    I wanted to know how can i make an array formula that uses the last written cell to do a calculation.

    Every day I upload new information in a table. And the last column of this table makes the diference between the last updated data and the year-end figures.

    Let's say:
    Monday: i put the values on cell A1 this means than the last cell (AB1) will be doing A1-AB1
    Tuesday: i put the values on cell B1 this means than the last cell (AB1) will be doing B1-AB1
    Wednesday: C1 - AB1
    Thursday: D1 - AB1
    and so on...

    Normally i do this manually but i guess there is probably an automatic way to do this.

    Can someone help me?

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    09-16-2009
    Location
    Dallas, TX
    MS-Off Ver
    Office 2013
    Posts
    107

    Re: Array formula that uses last written cell

    Formulae are not aware of when data was last updated. You will need to either use VBA or include "Date Updated" information that formulae can reference.

  3. #3
    Registered User
    Join Date
    11-01-2013
    Location
    Lisbon, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Array formula that uses last written cell

    Thanks.

    Can you help me do either of the options you mentioned?

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Array formula that uses last written cell

    You can use dynamic named ranges and refer them in your array formulas. You can define dynamic named ranges by using the following formula.

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

    In this case you are creating a dynamic named range in column A where A1 contains the header and the values start from A2.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. I've written a multi-dimensional Array to String, but need HELP to reverse it!
    By onidarbe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2013, 04:44 AM
  2. [SOLVED] Inserting a written formula using the IF function & cell references
    By Jaice in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-01-2013, 11:54 PM
  3. Replies: 20
    Last Post: 04-16-2012, 10:39 AM
  4. Array data to Range: Only first value written
    By Post Tenebras Lux in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2006, 01:00 PM
  5. using the name of a worksheet written in a cell, inside a formula
    By Using the name of a worksheet written in in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2006, 06:35 PM

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