+ Reply to Thread
Results 1 to 3 of 3

Using MATCH to replace range when moving columns

  1. #1
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Using MATCH to replace range when moving columns

    I've coded myself into a corner!
    I take cells from Main after filtering and copy to Main2 using "wsM.Columns("bm:bm").Copy .Range("j1")"
    The problem comes when I move a column or insert a new one on "Main" sheet. I got around it on another sheet by using MATCH =VLOOKUP($A2,Main!$B$2:$IV$397,MATCH(Main!E1,Main!$1:$1,0)-1,FALSE)
    Is there a way of inserting match into the range to make sure I first search for the correct column title (row main!A1) before copying it.
    Perhaps there's a quicker way?
    Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,671

    Re: Using MATCH to replace range when moving columns

    To copy a column which has First cell content "Column Title".



    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-14-2012
    Location
    England
    MS-Off Ver
    Excel 2010/2013
    Posts
    100

    Re: Using MATCH to replace range when moving columns

    Hi I think I need a better solution, maybe just add new colums but reference them somehow I dont know back to the drawing board. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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