+ Reply to Thread
Results 1 to 5 of 5

Match Cells with coloum header and then copy the same row

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    2

    Match Cells with coloum header and then copy the same row

    Hello All,

    I'm looking for VBA for my worksheet to match cell in coloum A with Coloum Header D : I and then copy value Coloum B to the same row as the coloum heder match where :

    coloum A is workers name
    coloum B is amount
    coloum header from D : I is workers name
    sample sheet is attached,

    thank you for any help,

    regards,
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Match Cells with coloum header and then copy the same row

    Hello
    Try the following code in you sample file:

    Please Login or Register  to view this content.
    Hope this helps.
    DBY

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Match Cells with coloum header and then copy the same row

    With formula in case it is enought
    A2 =IF($A2 = D$1,$B2,"")
    Copy and drag as needed
    - Battle without fear gives no glory - Just try

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Match Cells with coloum header and then copy the same row

    With macro and value
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    Jakarta
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Match Cells with coloum header and then copy the same row

    Thanks a lot guys you have solve my problem, two of your code are working, cheers

+ 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] Help with VBA code to match item numbers in column with header then copy cells to matching
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-21-2015, 09:34 AM
  2. Replies: 1
    Last Post: 10-05-2013, 03:35 PM
  3. [SOLVED] Match header information and copy data
    By aprcamb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2013, 10:58 AM
  4. Replies: 1
    Last Post: 06-19-2012, 03:37 AM
  5. Header to Match Worksheet Cell or Cells?
    By mycon73 in forum Excel General
    Replies: 2
    Last Post: 03-03-2011, 09:48 PM
  6. Match Header...Copy Column
    By mjack003 in forum Excel General
    Replies: 6
    Last Post: 09-23-2005, 09:05 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