+ Reply to Thread
Results 1 to 9 of 9

copy specific cells based on topics headers from sheet to another

  1. #1
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    copy specific cells based on topics headers from sheet to another

    hi experts
    I have many data for many customers , each customer contain table show the process of purchasing and pay the debits and how the balance becomes after all of theses processes
    so it should bring the values based on headers contain (name,debit,credit,balance) with considering the data are increasable every time add a new customer then should update in sheet
    result , I put the expected result in sheet RESULT with highlight the minus value in cell BALANCE
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: copy specific cells based on topics headers from sheet to another

    Here is an option

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: copy specific cells based on topics headers from sheet to another

    perfect !
    just question when loop the data in sheet DATA it loops through the filled cells or also the blanks cells
    I just want loop through the cells contain data to doesn't make slow the code

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: copy specific cells based on topics headers from sheet to another

    It currently looks at all cells in the loop, because we don't know the separated rows between each table.

  5. #5
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: copy specific cells based on topics headers from sheet to another

    we don't know the separated rows between each table.
    you're right , it missed me . OK but can you do that by array or dictionary. I'm afraid the code becomes slow if I increase the data .
    is that necessary or not ?

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: copy specific cells based on topics headers from sheet to another

    Try this one

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: copy specific cells based on topics headers from sheet to another

    thanks very much

  8. #8
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: copy specific cells based on topics headers from sheet to another

    I took your advice and used an array(coudn't think last night) and came up with a faster solution this morning.

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    06-17-2021
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    219

    Re: copy specific cells based on topics headers from sheet to another

    thanks again it's better

+ 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] bring data from sheet to another based on topics headers and specific column
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-29-2021, 05:38 PM
  2. Copy columns with a specific headers to another sheet
    By OKot in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2019, 08:41 AM
  3. Copy specific cells into next sheet based on criteria
    By peterderrington in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-05-2017, 10:53 AM
  4. [SOLVED] vba to copy data by specific headers to a master sheet in same workbook
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2016, 10:08 AM
  5. Need to copy ranges from multiple sheets then paste to sheet under specific headers
    By the duke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2013, 12:17 AM
  6. HELP! Macro to Copy specific cells from one sheet to another based on specific criteria
    By atriscritti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 11:05 AM
  7. Copy specific cells based on test to next free row on sheet 2
    By ARoman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2012, 09:56 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