+ Reply to Thread
Results 1 to 7 of 7

Automate Formula for each row

  1. #1
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Automate Formula for each row

    Dear Members,

    I have a Scenario where in the Sheet 1 columns (N, O, P, Q, R) have formulas.
    How do i create a VBA script which will help copy all the formualas to each row..

    There are only 18 rows, but in future it may grow to lakhs..
    SO how do we convert this formula to VBA code & then Paste special it.. so that after execution the Formulas will not be seen.. Only values... Please suggest.

    Attaching the sample file where Cloumns(N, O, P, Q, R) needs to be automated

    Below is the Sample code recorded macro

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Parth007; 03-02-2015 at 07:16 AM.
    Regards
    Parth

    I appreciate your feedback. Hit * if u Like.
    Rules - http://www.excelforum.com/forum-rule...rum-rules.html

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Automate Formula for each row

    Here is the simple workaround.
    1. Put Formulas in First row manually.
    2. Then Use this Little code to autofill

    HTML Code: 
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  3. #3
    Forum Contributor
    Join Date
    12-11-2010
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2007
    Posts
    118

    Re: Automate Formula for each row

    Parth_Lookup1.xlsm

    I'm no guru, but This will fill formulas down to the last row of input (depending on column A)
    and then have them set as values only.

    It's rough, and I'm sure it could be wrote smoother, but it works.
    Hope it helps

  4. #4
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Automate Formula for each row

    HI Vikas,

    Cant we automate first row too? Coz it will be difficult to everytime write formula in row 1 & then running the code & then again Paste special all formulaes...

  5. #5
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Automate Formula for each row

    Perfectly worked.. thanks for sharing the code

    Quote Originally Posted by ufopilot View Post
    Attachment 380356

    I'm no guru, but This will fill formulas down to the last row of input (depending on column A)
    and then have them set as values only.

    It's rough, and I'm sure it could be wrote smoother, but it works.
    Hope it helps

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Automate Formula for each row

    Okay then try this...

    HTML Code: 

  7. #7
    Valued Forum Contributor Parth007's Avatar
    Join Date
    12-01-2014
    Location
    Banglore
    MS-Off Ver
    2010
    Posts
    879

    Re: Automate Formula for each row

    Solved.. Great .. Vikas.. thanks for sharing...

+ 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. Using VBA to update automate a formula
    By nav505 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2013, 06:12 PM
  2. How to automate a formula on a table
    By padraigb in forum Excel General
    Replies: 5
    Last Post: 05-09-2010, 09:41 PM
  3. [SOLVED] How can I automate something to be added to a formula in excel?
    By Reepicheep in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-17-2005, 10:30 AM
  4. [SOLVED] Automate Run Rate Formula
    By Juan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2005, 06:06 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