+ Reply to Thread
Results 1 to 5 of 5

Simple macro code to perform one formula

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    london
    MS-Off Ver
    Excel 2016
    Posts
    107

    Simple macro code to perform one formula

    Hi everyone,

    Can someone help me getting a VBA code that can perform automatically one calculation? I have A3 to A52 values, and I want that B3 to B52 would be just like this: B3 is (1/8*(1025*9,81*A3^2)/1000) , B4 is (1/8*(1025*9,81*A4^2)/1000) and B5 is (1/8*(1025*9,81*A5^2)/1000) and so on until the end of all column B values?

    I attach example help.xlsm

    Thanks for any help
    Last edited by ropbasuel; 07-27-2014 at 09:54 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Simple macro code to perform one formula

    why not by formulas ?
    Please Login or Register  to view this content.
    Last edited by patel45; 07-27-2014 at 09:25 AM.
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    05-09-2013
    Location
    london
    MS-Off Ver
    Excel 2016
    Posts
    107

    Re: Simple macro code to perform one formula

    Dear patel45,

    Thank you so much for your reply. I know I can do this within Excel itself, but I really wanted a macro code that could do this.

    Thank you

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Simple macro code to perform one formula

    see previous post

  5. #5
    Forum Contributor
    Join Date
    05-09-2013
    Location
    london
    MS-Off Ver
    Excel 2016
    Posts
    107

    Re: Simple macro code to perform one formula

    Dear patel45,

    It works like a charm! Thank you so much!!

+ 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] Need to perform a simple check with letters in two words... again!
    By nvembos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-27-2012, 05:34 AM
  2. Perform formula then overwrite data in macro
    By carrdie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2010, 09:33 AM
  3. Macro to perform simple calculations
    By Zordon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-01-2009, 06:01 PM
  4. Excel Macro/Formula to perform Lookup
    By floridagunner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2007, 02:59 AM
  5. [SOLVED] Automation of Excel to perform simple tasks on many workbooks.
    By admin4office in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-14-2005, 09: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