+ Reply to Thread
Results 1 to 6 of 6

Transfer data based on values in range to related sheets

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Transfer data based on values in range to related sheets

    Hello everybody
    I have Data sheet in which I need to loop through the range G6:G18 and if the value equals to sheet name so the related data of that row to be copied to that sheet ..
    As for the header to be copied only if the cell value within the range G6:G18 equals to the sheet name

    I need to keep formatting in the results. I mean the results would be formatted as the main table in Data sheet if possible

    Hope it is clear
    Attached Files Attached Files
    Last edited by YasserKhalil; 07-11-2015 at 05:14 PM.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Transfer data based on values in range to related sheets

    Hi,

    Consider unmerging row 4 and 5. With the current structure, the procedure below only copy row 4 as header.

    Try,
    Please Login or Register  to view this content.
    Cheers,
    berlan

  3. #3
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Transfer data based on values in range to related sheets

    Hi,

    Using array (as alternative to my Avenger team who use AutoFilter) :

    Please Login or Register  to view this content.

    Regards

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transfer data based on values in range to related sheets

    Thanks a lot for both of you Avengers
    Mr. Berlan your code is perfect thanks for help

    Mr. Karedog
    Thank you very much for great help. Just a little point : the headers not to be copied in excluded sheets
    Test it and see sheets("K")

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Transfer data based on values in range to related sheets

    You are welcome, thanks for the reps. Don't worry, we are always ready to eradicate crimes.

    Here is the code to exclude blank sheets :

    Please Login or Register  to view this content.

    Regards

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Transfer data based on values in range to related sheets

    That's perfect now
    Thanks a lot for your efforts ..

    Till we meet again Avengers I have to say goodbye and regards

+ 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] Transfer data to seperate sheets, based on name
    By twisted31 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-28-2014, 02:13 PM
  2. Change some values & transfer the data to other sheets
    By RobinPrice in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2014, 07:50 AM
  3. Macro to transfer row of data between sheets based on certain criteria.
    By kmc86 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2012, 10:40 AM
  4. Data transfer between two sheets based on condition
    By agasi999 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-04-2008, 10:09 AM
  5. Data transfer between two sheets based on condition
    By shortman_alan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2008, 04:48 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