+ Reply to Thread
Results 1 to 4 of 4

Need to fill in a cell behind a cell in another tab when 2 values match.

  1. #1
    Registered User
    Join Date
    11-12-2020
    Location
    The Netherlands, Utrecht
    MS-Off Ver
    365
    Posts
    2

    Need to fill in a cell behind a cell in another tab when 2 values match.

    Hi guys,

    Perhaps a weird request but I'll try and explain it as good as i can.

    I have 2 worktabs. let's say tab 1 and tab 2.
    Tab 1 is the work file, tab 2 is where tab 1 get's it's information.

    On tab 1 I have the following fields:

    -----A-----------B
    1--Kevin

    A1 of tab 1 is a dropdown menu that get's it's values from row A on tab 2.

    On tab 2
    ------A-----------B
    1--Kevin -------Kev
    2--Xander------Xan
    3--Alex----------Ale


    Now what I'm trying to do is the following.
    I want it to be that when i select, let's say Kevin, on tab 1, it automatically fills in the right value in B from row B in tab 2. But if i select Xander from the dropdown in A1 it needs to recognize Xan should be in B2 of tab 1.

    Now I got this done with
    =IFS(EXACT(A1;tab2$A1);tab2;$B$2)
    (this formula is a rough translation from dutch, so it might look weird)
    The trouble is that I won't be the only one working on the file and the file will be a general file used in different projects with different names. so the formula needs to work no matter how many names are added to the dropdown.

    So I'm trying to make it so that if I pick Kevin, it searches in row A of tab 2 if it finds a match, if it then finds a match i want it to place the value of the B cell behind the match back into B1 in tab 1.

    I hope it's understandable and thanks in advance for the help!

  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 2403
    Posts
    44,041

    Re: Need to fill in a cell behind a cell in another tab when 2 values match.

    Is this what you mean??

    =VLOOKUP(A2,Sheet2!A:B,2,FALSE)

    If not, read the yellow banner (top of page) and post a sample sheet. You will need ; as the seprator, instead of ,
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    11-12-2020
    Location
    The Netherlands, Utrecht
    MS-Off Ver
    365
    Posts
    2

    Re: Need to fill in a cell behind a cell in another tab when 2 values match.

    Hi Glenn,

    You're my new hero haha.
    I figured I'd need to use the vertical search, but it was never really clear to me how it worked exactly.

    Now the file works like a charm and i finally understand vertical search and what i did wrong haha.

    Thank you!

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

    Re: Need to fill in a cell behind a cell in another tab when 2 values match.

    You're welcome!

+ 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] Match fill color of same cell values in two columns
    By karmadog62 in forum Excel General
    Replies: 11
    Last Post: 05-09-2019, 04:44 PM
  2. [SOLVED] Match a cell value in another sheet and copy values below the cell (Index Match)
    By naga in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-17-2017, 03:14 AM
  3. [SOLVED] VBA help needed to Fill cell values based on Adjacent Cell values
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-06-2014, 07:08 AM
  4. Match Cell Fill Color to another cell in same column in Array?
    By Trevorrow in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 10:06 AM
  5. Auto change one cell's fill to match another cell
    By spotta in forum Excel General
    Replies: 1
    Last Post: 06-12-2012, 07:34 AM
  6. Fill in Value if two cell values match
    By LordAcoustic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2010, 01:52 AM
  7. Cell fill color. Row to match specific cell.
    By CADinDallas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2006, 09:10 AM

Tags for this Thread

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