+ Reply to Thread
Results 1 to 4 of 4

Macro to calculate formula automatically from a list of input and save each result

  1. #1
    Registered User
    Join Date
    02-06-2016
    Location
    Varese, Italy
    MS-Off Ver
    2012
    Posts
    3

    Macro to calculate formula automatically from a list of input and save each result

    Hi,

    I need your kind help to solve this problem:

    I have a macro that can allow me to download the quotation of a single ticker (stock) from Yahoo. I type the ticker in a cell and, by pushing a button, I get the download of quotations. This data feed a formula that I have built to get a specific result.

    So at the moment I change the ticker, I push download and I get the result of the calculation. I copy and paste this result manually in another sheet (ticker in one cell and the result of the formulation in the other).

    As I want to make this calculation for a list of tickers, I would like to make this calculation automatic, by pushing a button.
    My idea is: push the button, the macro calculates the result of each ticker got from a list (that I can change) and the relative result should be saved in an another sheet ( in which I have the ticker in the first column and the value of the calculation in the second column)

    To make all more clear, I attach the file...

    Thank you for your precious support and for your time....

    Alessandro
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Macro to calculate formula automatically from a list of input and save each result

    I think this is what you want. It takes the selected columns from the Dati page and copies them to the Calcoli page. I make use of Excel tables on the Calcoli page in a table Called Table_Calcoli. The reason for using a table is that tables know their boundaries and are easy to clear. Also, they copy down formatting, validations and formulas automatically.

    I also imported some modules that I have in my personal library to clear tables and find the last row.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-06-2016
    Location
    Varese, Italy
    MS-Off Ver
    2012
    Posts
    3

    Re: Macro to calculate formula automatically from a list of input and save each result

    Thank you very much dflak.

    What I am looking for, is a macro that can calculate the result that you can find in the sheet "Calcoli" (last cell not empty - the position is not fixed because depends on the data that you set in the first sheet) for a list of input that you put in the first sheet (position B4).
    The automation should consist of pushing a button and starting the caluclation for a SET of input (from a list like in the column O in the first shee), and each result of the calculation (that you find currently in the sheet Calcoli in the position H272 - but it changes every day) should be saved in the other sheet "Results".


    Thank you

    Alessandro

  4. #4
    Registered User
    Join Date
    02-06-2016
    Location
    Varese, Italy
    MS-Off Ver
    2012
    Posts
    3

    Re: Macro to calculate formula automatically from a list of input and save each result

    To all,

    I have attached the file (name FILE2) with more comments in order to make it clearer

    Thank you for what you can do for me.

    Alessandro
    Attached Files Attached Files

+ 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. VBA Vlookup to input result(formula) into a cell
    By Ksharpes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-30-2015, 12:04 PM
  2. [SOLVED] Create List of results from a input search, select desired result, paste into worksheet
    By EddieRubi in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-25-2014, 02:59 AM
  3. [SOLVED] create input form from dropdown list and save data in table
    By Bax in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2013, 06:21 AM
  4. Input data automatically linked to drop down list
    By Greybeard101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2011, 11:23 AM
  5. Replies: 2
    Last Post: 04-14-2009, 02:40 PM
  6. Replies: 1
    Last Post: 03-09-2008, 12:02 AM
  7. [SOLVED] Setting for Excel automatically show count result in list ?
    By Andrew Tan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2006, 10:40 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