+ Reply to Thread
Results 1 to 7 of 7

copy separated range for each name from multiple sheets to another with calculation

  1. #1
    Forum Contributor
    Join Date
    09-21-2022
    Location
    africa
    MS-Off Ver
    2019
    Posts
    146

    copy separated range for each name from multiple sheets to another with calculation

    Hi
    I want copying data from sheets Makili1,Maklil2 with the same formatting and borders with excluding the formulas , should be value
    to sheet1 with calculation from column I : L POSTING (K) shuold brings from column BALANCE from first row under headers, DEBIT(L) should sum values in column (D) after first row under headers(second row (should be from row3),CREDIT(M) sum values in column (E) after first row under headers(second row(should be from row12)) for each name BALANCE(N)=POSTING+DEBIT-CREDIT somtimes add new sheets with the same structure and somtimes the customer doesn't contains value in POSTING (K) that's doesn't contains from the beginning then should sum normally . I want replacing data when run the macro every time becuase I will add and change data in sheets MAKLIL1,2 . the fourth sheet is what I expect result in sheet1 .
    the data colud be 3500 rows fo sheets Maklil1,2 (this is a sample)
    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: copy separated range for each name from multiple sheets to another with calculation

    Hi Maklil,

    Try below code based on your sample file ...
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Forum Contributor
    Join Date
    09-21-2022
    Location
    africa
    MS-Off Ver
    2019
    Posts
    146

    Re: copy separated range for each name from multiple sheets to another with calculation

    thanks , but there are two problems . the code copy to the bottom repeatedly when run the macro every time , should not do that just replace data ( can clear and copy in first sheet to avoid this problem).

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: copy separated range for each name from multiple sheets to another with calculation

    I have added one line to clear the data of sheet1 ... What is the 2nd issue ?
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-21-2022
    Location
    africa
    MS-Off Ver
    2019
    Posts
    146

    Re: copy separated range for each name from multiple sheets to another with calculation

    What is the 2nd issue ?
    what do you mean for this?

  6. #6
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: copy separated range for each name from multiple sheets to another with calculation

    Quote Originally Posted by Maklil View Post
    thanks , but there are two problems
    You mentioned that there are two problems, I have fixed the first one of deleting the old data before pasting the new data, what's the 2nd problem that you're encountering ?

  7. #7
    Forum Contributor
    Join Date
    09-21-2022
    Location
    africa
    MS-Off Ver
    2019
    Posts
    146

    Re: copy separated range for each name from multiple sheets to another with calculation

    umm!! I think the same problem happened with calculation from column I : L and repeat the headers ,but your suggestion fixed all of thing
    many thanks for you 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] Copy & Paste Same Range Across Multiple Sheets
    By Wheelie686 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2019, 02:17 PM
  2. importing multiple .txt files into separated sheets
    By zztop123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-20-2017, 05:57 AM
  3. Replies: 1
    Last Post: 09-23-2014, 06:42 PM
  4. [SOLVED] Sum range of numbers within a range of cells separated by multiple /'s
    By Squidlo in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 09-10-2014, 05:49 PM
  5. [SOLVED] Using range name to copy and paste into multiple sheets
    By adamNBU in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-18-2013, 12:33 PM
  6. Replies: 3
    Last Post: 09-07-2012, 02:50 PM
  7. [SOLVED] Copy range from multiple sheets, into a master sheet and moving over by variable col range
    By g1eagle in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2012, 01:36 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