+ Reply to Thread
Results 1 to 10 of 10

Copy a row if it matches a data from the left most column

  1. #1
    Registered User
    Join Date
    04-25-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    10

    Copy a row if it matches a data from the left most column

    Hi,

    I am trying to copy values and dates from a row if it matches the numbers in the left column.
    I attached a simplied version where I explained how it should be done.
    Can you please help me with that?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy a row if it matches a data from the left most column

    put:
    =IF(ISERROR(VLOOKUP($A14,$B$2:$D$9,COLUMN(A$1),0)),"",VLOOKUP($A14,$B$2:$D$9,COLUMN(A$1),0))
    in B14 and copy down/across

  3. #3
    Registered User
    Join Date
    04-25-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Copy a row if it matches a data from the left most column

    Hi,

    Thanks for your effort.
    Can you please attach the file? I am using Excel 2010, so a bit confuse how to modify your code to my file attached.
    I am sorry for the pain, and thanks for your help.

    Regards

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy a row if it matches a data from the left most column

    File is attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-25-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Copy a row if it matches a data from the left most column

    Quote Originally Posted by ragulduy View Post
    File is attached
    Excellent!
    Thank you so much for the help.

  6. #6
    Registered User
    Join Date
    04-25-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Copy a row if it matches a data from the left most column

    Hi again,

    It seems I still have some issue on this function to implement on my file (please find attached). It works with the simplified example that I sent you in my previous attachment, but it doesn't seem to give rational result in this file attached with this mail.

    Can you please have a look in to that (sheet 3 of the file)?
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy a row if it matches a data from the left most column

    The formula in E209 should become:
    =IF(ISERROR(VLOOKUP($D209,$E$4:$H$203,COLUMN(A3),0)),"",VLOOKUP($D209,$E$4:$H$203,COLUMN(A3),0))
    then copy down across
    (column(A3) is to return 1, which is the column from the E4:H203 range to return the lookup value from, the column(A3) is so that this changes to 2, 3, 4 etc. as it is dragged across but it should always be 1 for the first result.

  8. #8
    Registered User
    Join Date
    04-25-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Copy a row if it matches a data from the left most column

    Hi there!

    Still confused. Is it possible to attach the file please?
    Thanks for the help.
    Regards

  9. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy a row if it matches a data from the left most column

    File is attached.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-25-2014
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Copy a row if it matches a data from the left most column

    Thank you!!

+ 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 Data from one sheet to another if column data matches
    By solsearcher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-09-2013, 07:01 AM
  2. Replies: 2
    Last Post: 01-12-2013, 12:22 PM
  3. [SOLVED] IF name in column A matches then copy data in other field
    By Blue Fishey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-16-2012, 04:38 PM
  4. Replies: 2
    Last Post: 07-29-2010, 09:57 AM
  5. [SOLVED] VB copy paste column data to another left to right sheet across sh
    By baz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2006, 04:45 AM

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