Off-topic Talk Where overpaid, underworked S2000 owners waste the worst part of their days before the drive home. This forum is for general chit chat and discussions not covered by the other off-topic forums.

Excel Help

Old May 14, 2009 | 10:14 AM
  #1  
mingster's Avatar
Thread Starter
Registered User
20 Year Member
 
Joined: Oct 2000
Posts: 10,134
Likes: 0
From: Baltimore
Default Excel Help

say i've got 2 columns, 1 column is name, and the other is a set of numbers associated with the name.

now, i make a list in Excel (different column) using Data Validation tool (that's what pressing F1 told me), but how do I get it to populate the cell below this column automatically with the number associated with that name?

For example:
ABC | 123
XYZ | 234
NBC | 456

so i have a drop down box that's got ABC, XYZ, and NBC in another column. how do i get 123 automatically filled into the box below when i select ABC from the drop down box?

thank you for your help.
Reply
Old May 14, 2009 | 10:16 AM
  #2  
S2k_MoZo's Avatar
 
Joined: Jan 2008
Posts: 4,389
Likes: 0
From: Dallas, TX
Default

The only way I know is to write a macro?
Reply
Old May 14, 2009 | 10:30 AM
  #3  
DFWs2k's Avatar
Registered User
 
Joined: Oct 2005
Posts: 14,614
Likes: 2
From: Denton, TX
Default

you make an if statement , =if(targetcell="ABC","123",if(targetcell="DEF","45 6",if(targetcell='GHI','789',"N/A")))

didn't use your exact things cuz i didn't feel like scrolling back up
Reply
Old May 14, 2009 | 10:31 AM
  #4  
DFWs2k's Avatar
Registered User
 
Joined: Oct 2005
Posts: 14,614
Likes: 2
From: Denton, TX
Default

you put that formula at the cell to the right of your first abc/def/ghi, and then click in the bottom right of the cell with the formula and drag, or double click in the bottom right of the cell with the formula
Reply
Old May 14, 2009 | 10:43 AM
  #5  
trainwreck's Avatar
Registered User
 
Joined: Sep 2006
Posts: 2,440
Likes: 1
From: NORCAL
Default

what about =vlookup(a1,a1:b3, 2, true) in the column? if you use vlookup make sure you stratify column 2. if you are vlookup up text, also, use the trim( ) command to get rid of any spaces in the cell and dont forget quotes.

=vlookup(trim(a1),a1:b3, 2, true)
Reply
Old May 14, 2009 | 10:46 AM
  #6  
DFWs2k's Avatar
Registered User
 
Joined: Oct 2005
Posts: 14,614
Likes: 2
From: Denton, TX
Default

vlookup is too complicated for this situation, and he didn't say that he wants to have a key somewhere else on the sheet
Reply
Old May 14, 2009 | 10:54 AM
  #7  
trainwreck's Avatar
Registered User
 
Joined: Sep 2006
Posts: 2,440
Likes: 1
From: NORCAL
Default

i am assuming his list is more than 3 items long. if just 3 rows long, op can get away with if statements. but, if more data, vlookup is the only way to go, unless he loves writing if statements.

maybe i misunderstood the question.

if you just wanna be able to click on something in column 1 from a dropdown menu and have the associated column 2 data, its even simpler than if statements.

just go to DATA->filter->auto filter.
Reply
Old May 14, 2009 | 11:00 AM
  #8  
thebig33tuna's Avatar
 
Joined: Jan 2007
Posts: 32,283
Likes: 0
From: Cincinnati, OH
Default

sounds like a vlookup situation to me.
Reply
Old May 14, 2009 | 11:11 AM
  #9  
DFWs2k's Avatar
Registered User
 
Joined: Oct 2005
Posts: 14,614
Likes: 2
From: Denton, TX
Default

Originally Posted by trainwreck,May 14 2009, 12:54 PM
i am assuming his list is more than 3 items long. if just 3 rows long, op can get away with if statements. but, if more data, vlookup is the only way to go, unless he loves writing if statements.

maybe i misunderstood the question.

if you just wanna be able to click on something in column 1 from a dropdown menu and have the associated column 2 data, its even simpler than if statements.

just go to DATA->filter->auto filter.
oh gotcha, i assumed if it was a large list (greater than 5) he would've specified, i agree with you now
Reply
Old May 14, 2009 | 03:02 PM
  #10  
mingster's Avatar
Thread Starter
Registered User
20 Year Member
 
Joined: Oct 2000
Posts: 10,134
Likes: 0
From: Baltimore
Default

oh thank you all for the great input!

how can i forget vlookup?!! going to try that tomorrow

thanks again everyone.

the list is actually 8 variables long, each with a fixed value.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
ilvmys2000
Off-topic Talk
4
Jul 7, 2009 11:09 AM
JasonX82
Off-topic Talk
2
Oct 28, 2005 07:37 AM
wantone
Off-topic Talk
12
Sep 17, 2004 12:44 PM
bridow
Off-topic Talk
2
Apr 24, 2004 05:51 AM



All times are GMT -8. The time now is 12:03 PM.