+ Reply to Thread
Results 1 to 5 of 5

VBA for moving data into row down and calculate based in row up

  1. #1
    Registered User
    Join Date
    05-25-2018
    Location
    WW
    MS-Off Ver
    MS2016
    Posts
    3

    VBA for moving data into row down and calculate based in row up

    Hi,

    I have below data with me where i need a vba to perform the following activity


    Current data
    Line Amount tax Code Tax rec rate
    -175.26 VA-19 19

    Required Data
    Line Amount tax Code Tax rec rate
    -175.26
    -33.30 VA-19 19

    This needs to be filled till last row

    rgds
    rk
    Last edited by rkpg; 06-07-2018 at 03:43 AM.

  2. #2
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: VBA for moving data into row down and calculate based in row up

    rkpg,

    better to upload a sample workbook with current data and and a sheet with data you'd like to have.
    Beware to not put sensitive data into you workbook!!
    Also tell us how the new data should be converted.
    Where does the 33.30 come from? Is this a fixed value to add to the current data?
    Even a little help can be a big help !!
    1. A sample workbook says more then words. Add problem description and solution so we can understand the problem.
    2. Your appreciation is accepted by clicking the star "Add Reputation" at the lower left of the post.
    3. If your problem is solved, mark it as [SOLVED]: See "FAQ : " https://www.excelforum.com/faq.php
    4. Use [CODE] [/CODE] tags to illustrate your code: see here

  3. #3
    Registered User
    Join Date
    05-25-2018
    Location
    WW
    MS-Off Ver
    MS2016
    Posts
    3

    Re: VBA for moving data into row down and calculate based in row up

    Refer attached sample file with non sensitive data...tax rate (column P) is taken from the Column O.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: VBA for moving data into row down and calculate based in row up

    rkpg,

    this should do the trick

    Please Login or Register  to view this content.
    I included your book with the code.
    Run the macro on the page with menu "View - Macro's" - select view macro's.
    Select SplitRows and run it
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-25-2018
    Location
    WW
    MS-Off Ver
    MS2016
    Posts
    3

    Re: VBA for moving data into row down and calculate based in row up

    it worked...thank you so much 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. Moving Cells back to orginal cell after data is calculate.
    By tjeffords in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2016, 08:18 PM
  2. Replies: 15
    Last Post: 05-26-2016, 11:52 PM
  3. Need to calculate average for a column based on moving start column
    By BonnD in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-03-2013, 08:35 AM
  4. Replies: 10
    Last Post: 06-28-2012, 08:59 AM
  5. Moving data based on If
    By D_N_L in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2011, 09:01 AM
  6. VB - Moving data based on If
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2011, 02:35 PM
  7. Replies: 1
    Last Post: 04-26-2009, 08:16 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