+ Reply to Thread
Results 1 to 6 of 6

Automatically expand formulas to next row without fill handle.

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    14

    Automatically expand formulas to next row without fill handle.

    Hi there,

    I've spent a lot of time tryin to find out how to do this but I still haven't found what I'm looking for. The problem is as follows:

    I've got an excel sheet which uses a set of data which should be expanded every day. Now I don't want to use the fill handle to drag all the rows to row number 100000. Is there any chance the formula (applicable in the selected columns), can be expanded to the next row automatically, if the previous row contains a value?

    Thanks in advance!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Automatically expand formulas to next row without fill handle.

    Convert the range to a table: http://www.jkp-ads.com/articles/Excel2007tables.asp
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-01-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically expand formulas to next row without fill handle.

    Thank for your response! Unfortunately, this doesn't work. The table has to be resized to copy the formulas. If the table would expand itself automatically, this would be perfect. Any way this could be achieved?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Automatically expand formulas to next row without fill handle.

    If you cant use the TABLE option, then use an if() statement to test for data. Pick a cell that will always have data in it if there is data in that row - lets say you are woerking on row 100, and we use A100 for the test....

    =if(A100="","",your-formula)

    You can then copy this down as far as you want, it will only show a value IF there is data in the A column
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Automatically expand formulas to next row without fill handle.

    In order to reduce the number of IF statements, it can be done in a very few keystrokes.

    If your last cell is currently (say) R100:

    Put your cursor on that cell. In the name box (top left currently showing R100) overtype the R100 with R100000 (or whatever your last line will be). Hit Enter which will take you to the desired cell

    Press Ctrl+Shift+Cursor Up
    Press Ctrl+Shift+ Cursor Left
    Press Ctrl+d

    Job done

    Regards
    Alastair

  6. #6
    Registered User
    Join Date
    08-01-2012
    Location
    Amsterdam
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically expand formulas to next row without fill handle.

    Thanks for your help! I also found ou named ranges could help!

+ 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