+ Reply to Thread
Results 1 to 4 of 4

If the cell contains a value that exists in a list, copy the entire row

Hybrid View

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Gothenburg
    MS-Off Ver
    Excel 2011
    Posts
    23

    If the cell contains a value that exists in a list, copy the entire row

    Hi

    I have a list with phrases followed by a lot of data.
    The A column contains the phrase and in the row is the data connected to the phrase.

    Now i have a new list of phrases wich contains all the old phrases in column A plus some new ones.

    What i want is to look up the new list in the column AZ with the phrases in the A column. If its a match i want to copy the row with data and paste it to the right of the phrase in column AZ.

    For example the phrase in AZ2 is "adresserad direktreklam". You can find that phrase in A2. Then i want to copy row (B2 - AV2) to the right of AZ2.
    In cell AZ4 it says "adresserat utskick". You canīt find it in the A column so then we leave the cells to the right of AZ4 empty.


    Thanks!

    /Fabian


    Workbook1.xlsx

  2. #2
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: If the cell contains a value that exists in a list, copy the entire row

    There u go
    Attached Files Attached Files
    Please consider adding a * if I helped

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Gothenburg
    MS-Off Ver
    Excel 2011
    Posts
    23

    Re: If the cell contains a value that exists in a list, copy the entire row

    OMG
    Thanks alot
    Saved me a days extra work


    /Fabian

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: If the cell contains a value that exists in a list, copy the entire row

    In BA2

    =IFERROR(INDEX($B:$AV,MATCH($AZ2,$A:$A,0),MATCH(BA$1,$B$1:$AV$1,0)),"")

    fomat cell as General;;

    Copy down and across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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