+ Reply to Thread
Results 1 to 4 of 4

Extract data from column B based on data in column A and 'paste' into column D

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    Home
    Posts
    22

    Extract data from column B based on data in column A and 'paste' into column D

    Hi all,

    I have a list of products in column A with their corresponding prices in column B (Several thousand rows long)

    In column C (Can be any column, doesn't matter) I have a small list of products (A few hundred rows long)
    I would like to somehow extract the prices for those products from column B and 'paste' them in the adjacent column of the short list of products so that the product and price match up.

    If a product isn't there then maybe paste a zero or something that denotes that the product wasn't found in column A.

    Any help is much appreciated.

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Extract data from column B based on data in column A and 'paste' into column D

    in the adjacent column enter vlookup formula and drag it down

    Please Login or Register  to view this content.

    You can wrap the above code insdie if(iserror()) for excell 2000/2003 and iferror() for excel 2007

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract data from column B based on data in column A and 'paste' into column D

    Hi,

    Please Login or Register  to view this content.
    if you don't have Excel 2007 then
    Please Login or Register  to view this content.
    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    11-04-2008
    Location
    Home
    Posts
    22

    Re: Extract data from column B based on data in column A and 'paste' into column D

    Thanks very much guys, both work like a charm ..

+ 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