+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Auto-expanding cell formula

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Auto-expanding cell formula

    Hey all, I'm just curious about something. Is there a way to input a formula that expands itself as more data is put in? For example, this data adds a group of numbers together:

    =SUM(A1:A3)
    =SUM A1+A2+A3

    Is there a way for the code to update itself to include A4 if there is a value in A4? Thanks for the information.
    Last edited by qcity; 06-12-2011 at 10:35 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Auto-expanding cell formula

    Why not just =SUM(A:A)

    If you don't like that then try

    =SUM(A1:INDEX(A:A,MATCH(9.99999999999999E+307,A:A)))
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Auto-expanding cell formula

    Can't believe it was so simple. Thanks.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Auto-expanding cell formula

    Glad to see it worked for you

+ 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