+ Reply to Thread
Results 1 to 3 of 3

Macro Needed to extract data from one sheet to another

  1. #1
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Macro Needed to extract data from one sheet to another

    I will try and explain what I am looking for, as you can see from the Sample workbook I have 2 tabs Sheet1 & price.

    I would like a macro that would look at Sheet1 A column, it would match the numbers in this column again the B column on the price sheet. If it found a match, it would then take the data from the G column on the price sheet and list it in the B column on sheet1

    I hope I have explained this ok? I have highlighted what I need on the Sample sheet to make it easier to understand.

    Many thanks in advance for your help
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro Needed to extract data from one sheet to another

    Use this formula in Column B

    =VLOOKUP(A4,price!B:G,6,0)

    But before you apply the formula, remove the text formatting that you have in place for column B, or else the formula will not show the value.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Macro Needed to extract data from one sheet to another

    VLookup is probably the best way to go, but if you wanted a macro:

    Please Login or Register  to view this content.

+ 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