+ Reply to Thread
Results 1 to 5 of 5

Copy formulas of previous row if values are filled in column A

  1. #1
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    582

    Smile Copy formulas of previous row if values are filled in column A

    Dear Friends,

    I have a worksheet, called monthlysheet, in which cols. A - CX are there.

    Assume that I have right now data from A4 - CZ104 (Row #3 is my header data).

    From Col.A to Col.BZ are my values
    From Col.CA to Col.CX are formula based columns.

    Now, if i copy 50 data from some other workbook to this monthlysheet in cols. A - BZ, then I want to copy the formulas (all available in row #104) for the copied 50 data also.

    i.e. if values are copied in Col. A then automatically the formulas in Col.CA to CX should be copied for the same number of copied data rows.

    I need a VBA to automate the process.

    Thanks & regards.
    Last edited by acsishere; 01-27-2013 at 06:14 PM.
    Good friends are hard to find, harder to leave, and impossible to forget.

    acsishere.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Copy formulas of previous row if values are filled in column A

    I dont know why you need VBA doe this? You can either set yup the formulas to show nothing if there is nothing in that row (and copy them way down before-hand, or, after you copy the data in, you can just double-click on the drag-handle on each formula cell, and it will fill down to the last row of data
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    582

    Re: Copy formulas of previous row if values are filled in column A

    Yes, it is easy to drag and fill.

    But how about automation. Possibility of wrong dragging / mishandling may lead to entire report in vain.

    That's the reason i need to automate the all formulas if data are copied in col.A.

  4. #4
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    582

    Re: Copy formulas of previous row if values are filled in column A

    Any further VBA solution?

    Please...

  5. #5
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    582

    Re: Copy formulas of previous row if values are filled in column A

    any solution is highly obliged.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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