PC Review


Reply
Thread Tools Rate Thread

Can selection from text drop-down dictate value in another cell

 
 
Relating text to values in drop-downs
Guest
Posts: n/a
 
      20th Feb 2009
I am working in Excel. I have created a text drop-down menu in one column.
Can I insert a function so that when a choice is made, a value automatically
appears in another cell i.e. choosing Monday in Cell D1 brings up 100 in cell
E1, choosing Tuesday in Cel D1 brings up 200 in E1 etc...
 
Reply With Quote
 
 
 
 
Luke M
Guest
Posts: n/a
 
      20th Feb 2009
Yep. Take a look at LOOKUP functions (or VLOOKUP). If you're just using days,
you could even use a combination of WEEKDAY & CHOOSE. See XL's help file for
guidance on all of these functions.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Relating text to values in drop-downs" wrote:

> I am working in Excel. I have created a text drop-down menu in one column.
> Can I insert a function so that when a choice is made, a value automatically
> appears in another cell i.e. choosing Monday in Cell D1 brings up 100 in cell
> E1, choosing Tuesday in Cel D1 brings up 200 in E1 etc...

 
Reply With Quote
 
Ken
Guest
Posts: n/a
 
      20th Feb 2009
I have a sample workbook with the exact setup you are asking....email
me and I'll send it to you!
Ken
 
Reply With Quote
 
Ken
Guest
Posts: n/a
 
      20th Feb 2009
Or maybe you could use VBA:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Long
r = ActiveCell.Row

If Target.Column = 4 And Target.Row > 1 Then
Select Case Cells(r, "D").Value
Case "Monday"
Cells(r, "E").Value = 100
Case "Tuesday"
Cells(r, "E").Value = 200
Case "Wednesday"
Cells(r, "E").Value = 300
Case "Thursday"
Cells(r, "E").Value = 400
Case "Friday"
Cells(r, "E").Value = 500
Case "Saturday"
Cells(r, "E").Value = 600
Case "Sunday"
Cells(r, "E").Value = 700
Case Else
Exit Sub
End Select
End If
End Sub

Ken(not an expert!)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I use the drop down cell selection in a formula? Red Dianthus Microsoft Excel Discussion 1 18th Jul 2009 12:48 AM
Drop down selection inserts value in new cell tracey.down@ontario.ca Microsoft Excel Programming 1 25th Mar 2008 08:22 PM
Text to dictate colour of the cell and/or row Aaron Hodson \(Coversure\) Microsoft Excel Worksheet Functions 2 5th Oct 2007 10:38 AM
How do I dictate cell to cell progression in a protected worksheet =?Utf-8?B?bWlrZQ==?= Microsoft Excel Worksheet Functions 1 1st Sep 2006 10:31 PM
Selection of Drop down list that allows you to go to a particular cell Daphne Microsoft Excel Worksheet Functions 2 14th Jun 2006 09:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:23 AM.