Share via

Excel query - auto populating a cell based on different selections from a dropdown

Anonymous
2021-09-16T10:44:04+00:00

Hi all,

I've seen similar requests to this but am struggling to make sense of them for my specific requirement.

I have a list of team members in one column in a dropdown. Each person belongs to a specific team, and in the column directly to the right, i need the team they belong to to auto populate, based on the team member i have selected from the dropdown.

I've added screen shots of the page where all the data needs to be, highlighted the column that needs to auto fill in red. I've also added the list of the teams which I've currently listed on another tab.

If anyone could provide a quick step by step of how to achieve this I would really appreciate it.

Thank you!

Jo

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

OssieMac 48,001 Reputation points Volunteer Moderator
2021-09-16T21:26:14+00:00

You have a blank cell in C4 so it can't find the matching value. The value in C4 must match perfectly one of the values in the first column of the table array containing the names and team names.

If you want to insert the formulas before inserting the names then you need to handle the not found something like the following formula where it returns a zero length string if errors.

=IFERROR(VLOOKUP(C4,Teams!$A:$B,2,FALSE),"")

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-09-17T13:27:34+00:00

    All working now, thanks so much for your help!

    Jo

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-09-16T13:34:45+00:00

    Hello,

    Thank you so much for your reply.

    Unfortunately, I'm getting an N/A come up when I try what you've suggested (may have done something wrong. See screen shots:

    Also tried changing C4 to D4 and this just brought up and 0 in the Sales column.

    Thank you.

    Jo

    Was this answer helpful?

    0 comments No comments
  3. OssieMac 48,001 Reputation points Volunteer Moderator
    2021-09-16T11:43:57+00:00

    Your Teams worksheet needs to be set up with the Team names beside each person and then in the Sales column use Vlookup.

    the formula in cell D4 would be the following:

    =VLOOKUP(C4,Teams!$A:$B,2,FALSE)

    Screen Shot of Teams worksheet

    Screen Shot of Worksheet with Names and Vlookup formula (The formula I have shown in cell F4 is what you insert in cell D4)

    Was this answer helpful?

    0 comments No comments