+ Reply to Thread
Results 1 to 2 of 2

Dragging down formulas to last row in reference to the next column

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    2

    Dragging down formulas to last row in reference to the next column

    I would like to drag down the formula from the last cell in Column A in reference to the last row in column B.

    E.g My last data in Column A104 (code to select the last cell and this can vary from time to time the report is updated)
    Column B has data till B142. I want to drag A104(contains formulas) down to A142.

    Here is what I have but Selection Autofill doesnt work.

    Range("A2").End(xlToRight).Select
    Range("A2").End(xlDown).Select
    Selection.AutoFill Destination:=Range("A3:A" & Cells(Rows.Count, "B").End(xlUp).Row), Type:=xlFillDefault

    Any help, please?

    Thank you.

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Dragging down formulas to last row in reference to the next column

    Hello, welcome to the forums. Please remember to use code tags when posting code in the future.

    Try something like this:
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

+ 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. Change column reference while dragging formula vertically
    By ekatecohn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 07:23 PM
  2. [SOLVED] Dragging formulas with a static cell reference??
    By JMcDon1007 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-04-2013, 02:01 PM
  3. Replies: 5
    Last Post: 09-21-2012, 02:08 PM
  4. Excel 2007 : dragging workbook reference formulas
    By superchill435 in forum Excel General
    Replies: 2
    Last Post: 06-01-2012, 05:50 AM
  5. Dragging formulas by row reference..?
    By Freckles25nw in forum Excel General
    Replies: 4
    Last Post: 01-23-2008, 12:50 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