+ Reply to Thread
Results 1 to 3 of 3

Macro to copy simple Sum down the collumn

  1. #1
    Registered User
    Join Date
    09-03-2012
    Location
    Christchurch New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    45

    Macro to copy simple Sum down the collumn

    Hi

    I need a macro that can copy a simple formula

    I have 2 columns one for the number of items and a column next to it that cumulatively add the totals down the sheet e.g. =E12+G13 etc.

    A B
    2 2 (=A1)
    4 6 (=A1+B2)
    1 7
    3 10
    2 12


    If I copy the formula all the way down the page my graph becomes distorted
    Is there a macro that will only copy the formula when there is data in the first column and run in the background without needing to be activated

    Any help appreciated

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Macro to copy simple Sum down the collumn


    A
    B
    1
    2
    2
    2
    4
    6
    3
    1
    7
    4
    3
    10
    5
    2
    12



    B
    1
    =SUM($A$1:A1)


    Drag it down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-03-2012
    Location
    Christchurch New Zealand
    MS-Off Ver
    Excel 2013
    Posts
    45

    Re: Macro to copy simple Sum down the collumn

    Hi Thanks for your reply

    The reason i dont want to drag the formula down is that i have about 400 lines that will need to be filled
    If i drag it down, the graph still displays the figures for all the lines
    I want the fromula to be pasted automatically into collumn B when a number is entered into collumn A
    Is there a way of doing this?

    Thanks for your help

+ 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] Find a collumn in a dynamic sheet and select the entire collumn
    By Armand0 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2014, 11:20 AM
  2. My macro needs a couple tweeks- Fairly simple copy and paste macro
    By wiebs2334 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2013, 08:02 AM
  3. My macro needs a couple tweeks- Fairly simple copy and paste macro
    By wiebs2334 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 08:23 PM
  4. Simple copy macro
    By Optitron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-05-2007, 05:05 PM
  5. Macro to Copy One Collumn to the Next
    By JohnOB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-08-2006, 09:58 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