+ Reply to Thread
Results 1 to 3 of 3

Need help with Macro to autofill formula in Column B based on length of Column A

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Wink Need help with Macro to autofill formula in Column B based on length of Column A

    Hi, sorry i am new to VBA Coding....just started today. I need help writing a macro that will allow me to take the formula I have entered in B1 and autofill it down based on the length of column A. (i.e. if the cells A1-A10 have data, i need to be able to copy the formula i have entered in B1 from B1-B10. The issue i am facing is that the length of column A will vary from file to file. So one file might have 20 lines of data, while another might have 200 and i need the macro to work on both).

    Any help would be much appreciated!
    Thank you!!!

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Need help with Macro to autofill formula in Column B based on length of Column A

    Hi,
    Here's one way to do it :
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need help with Macro to autofill formula in Column B based on length of Column A

    thank you! worked perfectly!!

+ 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. [SOLVED] Macro to autofill formula down to length of adjacent column to the left
    By jacobadger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2012, 08:28 PM
  2. Formula/macro to edit cells in one column based on contents of a cell in another column
    By robbyvegas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-25-2012, 06:10 AM
  3. Autofill a column based on number in adjacent column
    By fbonetti in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2011, 04:19 PM
  4. Macro to autofill a IF function based on the column before it
    By capnhud in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-16-2010, 11:58 AM
  5. Autofill Column D based on input in Column C
    By Helen McClaine in forum Excel General
    Replies: 1
    Last Post: 04-05-2005, 05:06 PM

Tags for this Thread

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