+ Reply to Thread
Results 1 to 3 of 3

Macro compute

  1. #1
    Forum Contributor
    Join Date
    04-22-2013
    Location
    Philippines
    MS-Off Ver
    Office 365, Excel 2016
    Posts
    146

    Macro compute

    I have this table that has a computation, is it possible to automatically compute inside a vba without the formula based? I am a little slow in for loop or iteration. Can someone help me so that I can follow on how to compute the following items. I want to automate the computation instead of having a formula. Automate the computation for column A-C by row.

    Compute first column A up to down then column B and so on..

    OUTPUT

    A B C
    1 5 19 45
    2 10 21 0
    3 0 32 17


    DATA


    A 1 5
    B 2 21
    B 3 32
    C 1 45
    A 2 10
    C 3 17
    B 1 19

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Macro compute

    Assuming your input data is three columns wide...
    you could try this

    Please Login or Register  to view this content.
    Input from Sheet1
    Output to Sheet2
    Last edited by Special-K; 08-12-2016 at 05:06 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Macro compute

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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 compute multiple Monte Carlo solutions with different seeds
    By deim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2016, 02:28 PM
  2. [SOLVED] Can't get macro to compute 5 day average to work?
    By enjoi2p0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 12:52 AM
  3. [SOLVED] Macro or formula to compute differences
    By bigband1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2013, 04:38 AM
  4. Macro to Compute Info if Cell is Red
    By ISUCyclones in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 11:11 AM
  5. UDF to compute using ranges
    By nougain in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-12-2006, 01:55 AM
  6. How to compute overtime pay
    By Boro in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-31-2005, 06:05 AM

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