+ Reply to Thread
Results 1 to 8 of 8

Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    9

    Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    Hello Friends,

    I have a sheet 1 with 4000 records, and sheet 2 contains regular updates that we do.

    I am looking to find cell value of Column A of Sheet 2 in Column M of Sheet 1 and if it is found then Copy Column B of Sheet 1 for the respective row in Column D of sheet 2.

    Purpose: In the sample sheet below, Shipment No from 1st sheet has to matched with New Shipment No. in Sheet 2 for some manual verification.

    Any help in this regard is highly appreciated.
    Attached Files Attached Files
    Last edited by adblog3; 04-23-2020 at 02:29 AM.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    Does it have to be a macro ? This could be achieved in a very simple formula

    Copy below formula in cell D2 in Sheet2
    =INDEX(Sheet1!B:B,MATCH(A2,Sheet1!M:M))

  3. #3
    Registered User
    Join Date
    02-01-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    Yes Sir, need a macro to do the same, macro need to match the whole shipment no., as many many have duplicate partial numbers.

    I have a large sheet with about 4000 rows, so i think a macro would be the best choice for the same, as i will need to do this operation everyday.


    Quote Originally Posted by nankw83 View Post
    Does it have to be a macro ? This could be achieved in a very simple formula

    Copy below formula in cell D2 in Sheet2
    =INDEX(Sheet1!B:B,MATCH(A2,Sheet1!M:M))

  4. #4
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    While I believe a formula could yield the same results but try the below macro as per your request

    Please Login or Register  to view this content.
    Last edited by nankw83; 04-22-2020 at 02:51 PM.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,230

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    So why not just use nankw83 formula code as macro...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  6. #6
    Registered User
    Join Date
    02-01-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    Thank you kind Sir, it works perfect. Much appreciated.

    Quote Originally Posted by nankw83 View Post
    While I believe a formula could yield the same results but try the below macro as per your request

    Please Login or Register  to view this content.

  7. #7
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    Glad to help & you are welcome

    Please mark this thread as solved by selecting Thread Tools from the menu link above & add to the reputation(s) of those who helped

  8. #8
    Registered User
    Join Date
    02-01-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Bulk Find Number from 2nd Sheet in 1st Sheet and copy value from same row to sheet 2

    Thank you very much Sir.

    Quote Originally Posted by sintek View Post
    So why not just use nankw83 formula code as 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)

Similar Threads

  1. [SOLVED] loop range in sheet 3 to find value and copy offset cell to sheet 2
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2017, 09:58 AM
  2. Replies: 6
    Last Post: 11-13-2015, 07:36 AM
  3. 2 Sheets - Input Sheet & Output Sheet - Find unique number and add value to a column
    By bebongtheshark in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-16-2014, 01:23 AM
  4. Replies: 4
    Last Post: 01-28-2014, 01:04 PM
  5. [SOLVED] Bulk import. (Copy Data from one sheet to a main sheet with conditions)
    By DanzaNZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 12:24 AM
  6. Replies: 11
    Last Post: 10-14-2012, 01:03 PM
  7. Find value from sheet 1, cell A1 in sheet(s) 2 (3, 4?), copy, paste row to sheet 8
    By fleeting in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2011, 03:31 PM

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