+ Reply to Thread
Results 1 to 2 of 2

Copy values in range column Y when Values in range of column A match Values in other range

  1. #1
    Registered User
    Join Date
    12-16-2022
    Location
    London,ON
    MS-Off Ver
    2211
    Posts
    1

    Copy values in range column Y when Values in range of column A match Values in other range

    Hello.

    I have the following

    TABLE 1
    Column A Column B
    Red Today
    Blue Tomorrow
    Yellow Yesterday

    Then I have another table under this one which is the following

    TABLE 2
    Column A Column B
    Yellow
    Red
    Blue


    As you can see values in Table 2 - Column A are in a different order than values in Table 2 - Column A

    What I want is that when values in Table 2 - Column A that match Values of Table 1 - Column A, Then the formula has to copy in Table 2 - Column B the correspondent value that was in Table 1 - Column B.

    Basically, the result has to be this one:

    Column A Column B
    Yellow Yesterday
    Red Today
    Blue Tomorrow


    Thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Copy values in range column Y when Values in range of column A match Values in other r

    Try:

    =IFERROR(VLOOKUP(A2,Sheet1!A:B,2,FALSE),"")

    copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. [Request] VBA to find match multiple values from column range
    By Mastero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2022, 08:33 AM
  2. [SOLVED] Find and Match values in a range with values in another range and show their position
    By Luisftv in forum Excel Formulas & Functions
    Replies: 31
    Last Post: 10-22-2021, 01:25 AM
  3. [SOLVED] Copy a range based on how many values in a column
    By Hokkaido in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-04-2017, 08:10 AM
  4. Replies: 4
    Last Post: 10-01-2015, 11:01 AM
  5. [SOLVED] Copy and paste values in column range into first empty column to the left
    By gbatz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2014, 06:59 PM
  6. Match values in a range with another range and copy the adjacent column
    By xelmac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2012, 01:42 PM
  7. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM

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