+ Reply to Thread
Results 1 to 7 of 7

Formula AutoFill - Last Row with Abosolute Referencing

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003-2010
    Posts
    56

    Formula AutoFill - Last Row with Abosolute Referencing

    Hello all,
    Can anyone help fix the code I am working on.

    I have data that will not always contain the same number of rows. I want to autofill a formula to the column to the last row, this part I have done fine, however its the absolute reference I cant do.

    This is the code:


    Please Login or Register  to view this content.
    When I run the Macro it works great, however as it currently ends up showing =RANK(C2,$C$2:$C$229) this will not work fine if there are more or less than 229 rows of data.

    Thanks for any help.
    Attached Files Attached Files
    Last edited by JimmyG.; 11-16-2014 at 06:33 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Formula AutoFill - Last Row with Abosolute Referencing

    Please post a sample workbook

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Formula AutoFill - Last Row with Abosolute Referencing

    And please, before I can continue, use Code Tags in your first post in this thread.


    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    Post updated: thanks.
    Last edited by TMS; 11-17-2014 at 10:40 AM.

  4. #4
    Registered User
    Join Date
    06-04-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003-2010
    Posts
    56

    Re: Formula AutoFill - Last Row with Abosolute Referencing

    Post updated

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Formula AutoFill - Last Row with Abosolute Referencing

    Thanks for updating the post.

    I rarely use Autofill if I know the range that the formula is going to go into. And you don't need to select anything.

    Please Login or Register  to view this content.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    06-04-2012
    Location
    Sheffield, UK
    MS-Off Ver
    Excel 2003-2010
    Posts
    56

    Re: Formula AutoFill - Last Row with Abosolute Referencing

    Thanks TMS, I'll try that later

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Formula AutoFill - Last Row with Abosolute Referencing

    Thanks for the rep.

+ 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. Referencing Cells to correspond with their rows for autofill
    By NINmh in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 03-12-2015, 06:33 PM
  2. Autofill base on Active Cell and Autofill by row count of another sheet
    By enyak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2014, 10:06 PM
  3. Replies: 0
    Last Post: 09-17-2012, 08:24 AM
  4. Excel 2007 : data referencing and autofill
    By firstdecimal in forum Excel General
    Replies: 0
    Last Post: 07-15-2011, 07:22 PM
  5. Trying to autofill function while referencing a workbook
    By mweiss1215 in forum Excel General
    Replies: 1
    Last Post: 07-14-2011, 12:23 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