+ Reply to Thread
Results 1 to 3 of 3

Need vba code to use vlookup to take data from three sheets

  1. #1
    Registered User
    Join Date
    02-11-2016
    Location
    dubai
    MS-Off Ver
    msoffice 2010
    Posts
    75

    Need vba code to use vlookup to take data from three sheets

    Heloo

    I have attached excel as sample for your review. Also i rewrite the requirement as below

    In the attached excel there is three sheets
    Mainbook
    Data1
    Data2

    Data 1 and Data 2 sheet has list of details available in the Row with reference in A column as PO#

    In Mainbook - Column D will be filled with PO#

    Required VBA code to pull the related PO# row details from the DATA1 or in DATA2 sheets.

    Hope I clarified the requirment. Please support.

    Note: If suppose PO# available as Duplicate in DATA1 and DATA2, kindly show the result as duplicate in Mainbook related row on any of the cell
    Attached Files Attached Files
    Last edited by anuwers; 08-03-2021 at 02:35 PM. Reason: TO EXPLAIN IN BETTER AND TO ATTACH SAMPLE

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2507 Win 11
    Posts
    24,918

    Re: Need vba code to use vlookup to take data from three sheets

    Instead of using Vlookup, how about this loop.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,027

    Re: Need vba code to use vlookup to take data from three sheets

    Another Option...
    Assumes all PO's are present in either of sheets...
    Please Login or Register  to view this content.
    Last edited by Sintek; 08-09-2021 at 07:44 AM.
    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 [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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. Transfering data to two sheets, same code but on one sheet data is over written
    By Bikern in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2020, 08:04 AM
  2. Transfer data from Front sheet to data storage sheets (help with code pse)
    By Potholes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2019, 02:24 AM
  3. Replies: 19
    Last Post: 05-31-2018, 08:09 AM
  4. [SOLVED] VLOOKUP between sheets to give different code dates
    By Brian05 in forum Excel General
    Replies: 9
    Last Post: 11-10-2017, 10:33 AM
  5. Vlookup data in 17 different sheets
    By euch in forum Excel General
    Replies: 1
    Last Post: 06-29-2016, 03:12 PM
  6. vlookup between two sheets of data.
    By Danie_T in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-01-2013, 02:36 PM
  7. vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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