+ Reply to Thread
Results 1 to 4 of 4

Copy strings according to predefined markers (numbers)

  1. #1
    Registered User
    Join Date
    08-20-2016
    Location
    Belgrade
    MS-Off Ver
    Windows 7 64-bit, Excel 2007
    Posts
    22

    Copy strings according to predefined markers (numbers)

    Hello.

    In Sheet2, Column B (B3:B50) I have a strings which I need to copy in Sheet1 , Row 3 in cells B3,D3,F3, ... V3 and X3 (12 in total).

    In Sheet2, Column G is so called "markers" Column because it contains markers/numbers for each product and those markers define copy position for each cell (copy position in Sheet1, row3).

    So, if (in Sheet2) cell G3=1 than string from cell B3 (Sheet2) should be copied in B3 (Sheet1) and so on...

    Example.

    Sheet2

    B G
    3 home 3
    4 shop
    5 excel 1
    6 pattern 6
    7 question 2
    8 product
    9 best 5
    10 forward 4
    11 ... ...

    Sheet1 (after macro run)


    A B C D E F G H I J K L M N
    1
    2
    3 excel question home forward best pattern ...

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

    Re: Copy strings according to predefined markers (numbers)

    Maybe :

    Please Login or Register  to view this content.
    Attached Files Attached Files
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Registered User
    Join Date
    08-20-2016
    Location
    Belgrade
    MS-Off Ver
    Windows 7 64-bit, Excel 2007
    Posts
    22

    Re: Copy strings according to predefined markers (numbers)

    Yes, I just changed Offset function to Offset(, 5)...
    Works perfectly. Thank you.

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

    Re: Copy strings according to predefined markers (numbers)

    You are welcome.
    Don't forget to mark this thread as solved :
    please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Split strings based on numbers and gather scattered strings
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-10-2016, 09:44 PM
  2. Using numbers as markers on a graph.
    By Dapos1993 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-11-2013, 10:12 AM
  3. Replies: 1
    Last Post: 05-03-2012, 10:50 AM
  4. Extracting strings from a column of data that match a predefined list
    By jmurray in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-16-2009, 05:10 AM
  5. Replies: 3
    Last Post: 10-27-2008, 08:32 AM
  6. Replies: 2
    Last Post: 08-02-2006, 11:10 AM
  7. can I change data markers to numbers in a scatter chart?
    By treez in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-13-2006, 06:00 AM

Tags for this Thread

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