+ Reply to Thread
Results 1 to 7 of 7

Match existing column name, copy based based on matching name, drag till end

  1. #1
    Registered User
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    44

    Post Match existing column name, copy based based on matching name, drag till end

    Hi Experts...

    I have data set which is driven by a condition. The driving condition is month, based on the month in A1, the data from B1 to B20 to be copied and pasted as value in sheet 2.

    Sheet 2 have Months defined as column headers (A1 to X1). There is a blank column between two months. The function should match the month specified in Sheet1 A1 to Sheet 2, copy data B1 to B20 right under the matching criteria header. It should get updated for month specified in condition till months till year end...

    Please help..

    Sample file attached
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Match existing column name, copy based based on matching name, drag till end

    Hi Amolvijay,

    Try this:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Match existing column name, copy based based on matching name, drag till end

    HI XLAdept..

    Thank you very much for your solution. Yes, It does work...

    But, my requirement is to copy Sheet 1, B1:B20 to sheet to from the month specified in sheet 1 A1, till sheet 2 W1..

    SO if A1 is JUN, then JUN till DEC should have the value copied from sheet..

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Match existing column name, copy based based on matching name, drag till end

    Try the attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-20-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Match existing column name, copy based based on matching name, drag till end

    HI AB33,

    Thanks for the sample file....still this is not the one..
    Once we are able to copy from Sheet 1 depending upon A1 value, the data set B1:B20 should get copied from satisfying condition on sheet 2, till end of the year, ie till Dec.

    eg If A1 have Oct, then B1:B20 should be copied from Oct till Dec..

    Hope I am able to explain the requirement.

    Please help

  6. #6
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Match existing column name, copy based based on matching name, drag till end

    Hi Amolvijay,
    maybe so
    Please Login or Register  to view this content.

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Match existing column name, copy based based on matching name, drag till end

    Hi Amolvijay,

    Try this floop:

    Please Login or Register  to view this content.

+ 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. Copy column based on partial word match in first row and paste into existing workbook
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2013, 03:52 PM
  2. Copy column based on partial word match in first row and paste into existing workbook
    By David Harris 1987 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2013, 01:02 PM
  3. [SOLVED] Identify the last filled row in Column A and then drag formula in Column B till the same
    By bonny24tycoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2012, 10:50 AM
  4. Replies: 1
    Last Post: 07-01-2011, 07:21 PM
  5. Replies: 2
    Last Post: 03-16-2009, 12:26 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