Excel Populate cell based on value in other cell :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Populate cell based on value in other cell
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

sholmb1
Welcome to the Board


Joined: 09 Apr 2002
Posts: 5


Status: Offline

 Reply with quote  

I want to be able to populate cell B1 based on the value entered into cell A1. Cell A1 is a drop down list with values set up in a range on worksheet 2. Cell A1 is the associates name. I want cell B1 to be the associates manager.

On worksheet 2, in column A are all the associates names, in column B is the associates manager.

What I would like to happen is when I select a name (on worksheet 1) from the drop down list, the managers name would auto populate.

Thanks for any help.

Post Sat May 18, 2002 1:58 am 
 View user's profile Send private message

Tom Urtis
MrExcel MVP


Joined: 11 Feb 2002
Posts: 2025
Location: San Francisco / Silicon Valley, California USA
Flag: Blank

Status: Offline

 Reply with quote  

It sounds like you might only need a VLOOKUP or INDEX MATCH formula in cell B1 of Sheet1.

VLOOKUP will probably do, but here's an INDEX MATCH suggestion, just because.

=INDEX(Sheet2!$A$1:Sheet2!$B$100,MATCH($A$1,Sheet2!$A$1:Sheet2!$A$100,0),2)

Modify for ranges and sheet names.

Is this what you are looking for, or is there something more to your situation?

_________________
Tom Urtis

Post Sat May 18, 2002 2:51 am 
 View user's profile Send private message Send e-mail Visit poster's website

Nimrod
MrExcel MVP


Joined: 30 Apr 2002
Posts: 2511
Location: Vancouver BC , Canada

Status: Offline

 Reply with quote  

Here you go mate... this seems to do it:

This formula assumes:
sheet1!A1 is where you put the name you want looked up the matching manager for
Sheet1!B1 is where the formula goes
Sheet2!A:A is where the employees names go
Sheet2!B:B is where the managers names go

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

[ This Message was edited by: Nimrod on 2002-05-17 23:12 ]

[ This Message was edited by: nimrod on 2002-05-17 23:30 ]

Post Sat May 18, 2002 3:11 am 
 View user's profile Send private message AIM Address

sholmb1
Welcome to the Board


Joined: 09 Apr 2002
Posts: 5


Status: Offline

 Reply with quote  

THANKS! The VLOOKUP works like a charm!

Post Mon May 20, 2002 11:09 am 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.