+ Reply to Thread
Results 1 to 7 of 7

Copy data with 4 cell interval and copy range of data like vlookup with structured output

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Copy data with 4 cell interval and copy range of data like vlookup with structured output

    Hello everyone,

    first i would like to welcome myself as a new member of the forums, I came here because if have been struggling with a project for which i have to sort trough large amounts of data. I tried researching and tackling the problem myself however unfortunately i couldnīt find the solution online, if i missed a link to a topic with similar problems please forgive my ability to search and with a link to that topic i will be able to help myself.

    so the first problem is the following.
    I want a macro to copy range A1:B1 to A2:B2(I got this far =), then I want the macro to add an X number of cells to its copy range, in this example lets X be 4 cells and then I want it to repeat the process, copy from cell F4:G4 to A3:B3 the next copy sequence will be K8:L8. So the difficulty for me is now: what code to use to let the copy macro automatically skip 4 cells every time it makes its copy routine.

    My second problem has to do with data selection.
    If it is possible I would like to copy a specific range from a large range. More specifically Iīm looking for a way to first search for a specific word like chairs, then I would like the macro to copy the cell containing the word chairs and the cell next to this. Like A1 (chairs) B1 (20) and after this paste it in a defined place A2:B2 or something. The word Chairs shows up multiple times in my dataset each time with a different amount and I would like to have a list of these amounts. lets say the range is from A1 to AA20

    I tried to apply different filters and sorting techniques however due to the very random distribution of the chairs in my dataset i cannot get this to work.

    thanks in advance for any help
    Last edited by Daydreams; 08-23-2013 at 04:09 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: 2 beginner problems

    to copy range A1:B1 to A2:B2
    Please Login or Register  to view this content.
    for other questions attach please a sample file with data and desired result
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    08-19-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: 2 beginner problems

    Hey,

    Thanks for the replies, I made the changes you suggested FDibbins furthermore I added an excel sheet with both problems and their desired output, I hope somone will be albe to help me.

    2 copy problems.xlsx

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copy data with 4 cell interval and copy range of data like vlookup with structured out

    I think your notes are not in according with results

  5. #5
    Registered User
    Join Date
    08-19-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Copy data with 4 cell interval and copy range of data like vlookup with structured out

    Quote Originally Posted by patel45 View Post
    I think your notes are not in according with results
    I do not understand the problem, can you be more precise with your comment.
    I tried to be as specific as i could in the excel sheet. Under the header preffered result one can see exactly what my desired outcome would look like

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy data with 4 cell interval and copy range of data like vlookup with structured out

    Hi, Daydreams,

    maybe have a look at this for copying the contents beneath each other:
    Please Login or Register  to view this content.
    You would need to alter the range to suit for the second (as well as the offset from the starting point):
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  7. #7
    Registered User
    Join Date
    08-19-2013
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Copy data with 4 cell interval and copy range of data like vlookup with structured out

    Hey HaHoBe,

    That is exactly what Iīm looking for, thanks big time, you made my day =)
    You also showed me that a cursus visual basic for excel might not be a bad idea.

    thanks again

+ 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. Hello from a beginner
    By bstinson in forum Hello..Introduce yourself
    Replies: 5
    Last Post: 08-11-2013, 09:57 PM
  2. Help please for a beginner
    By LACKLUSTABUSTA in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2010, 06:41 AM
  3. Beginner
    By Mardikas09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2009, 05:59 AM
  4. Beginner needs code to be proof read (there ARE problems)
    By dcase in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2006, 11:20 AM
  5. Please help a beginner....
    By Lindsey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2005, 12:11 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