Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Data Validation Formulas

I have a main worksheet with a Data Validation Drop Down List. There is
another worksheet where I have the list/s of information, I have called
INFO1. Let's say the first cell in the main sheet is K7. The data on the
INFO1 worksheet is in the following format:
A B
1 Red R
2 Green G
3 Blue B
4 Purple P
When I click on K7, I get the drop down list of A1 thru A4, and making a
selection returns the value in column A I clicked on. What I want to happen
is when I click on a cell in column A it will then return the value in column
B only in cell K7. i.e. click A2 returns G in cell K7. Hope I have asked
this correctly. thanks for the help......... Bill

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Data Validation Formulas

You need an event sub for that:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Worksheets("main").Range("K7") = Cells(Target.Row, Target.Column + 1)
End Sub

Post if you need help to install it!
Regards,
Stefi

€žretired bill€ť ezt Ă*rta:

I have a main worksheet with a Data Validation Drop Down List. There is
another worksheet where I have the list/s of information, I have called
INFO1. Let's say the first cell in the main sheet is K7. The data on the
INFO1 worksheet is in the following format:
A B
1 Red R
2 Green G
3 Blue B
4 Purple P
When I click on K7, I get the drop down list of A1 thru A4, and making a
selection returns the value in column A I clicked on. What I want to happen
is when I click on a cell in column A it will then return the value in column
B only in cell K7. i.e. click A2 returns G in cell K7. Hope I have asked
this correctly. thanks for the help......... Bill

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 30
Default Data Validation Formulas

Stefi - Thanks for your reply. I'm very new to this, and am sorry to say I
do not know what an event sub is or how to use/post/install. Would
appreciate any and all help you may give to a new guy. This one I cannot
figure out. Thanks, Bill

"Stefi" wrote:

You need an event sub for that:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Worksheets("main").Range("K7") = Cells(Target.Row, Target.Column + 1)
End Sub

Post if you need help to install it!
Regards,
Stefi

€žretired bill€ť ezt Ă*rta:

I have a main worksheet with a Data Validation Drop Down List. There is
another worksheet where I have the list/s of information, I have called
INFO1. Let's say the first cell in the main sheet is K7. The data on the
INFO1 worksheet is in the following format:
A B
1 Red R
2 Green G
3 Blue B
4 Purple P
When I click on K7, I get the drop down list of A1 thru A4, and making a
selection returns the value in column A I clicked on. What I want to happen
is when I click on a cell in column A it will then return the value in column
B only in cell K7. i.e. click A2 returns G in cell K7. Hope I have asked
this correctly. thanks for the help......... Bill

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation Formulas leimst Excel Worksheet Functions 3 June 30th 08 03:15 AM
Data validation formulas Peter Excel Discussion (Misc queries) 1 March 21st 08 02:24 PM
formulas/data validation CHRIS...in trouble Excel Worksheet Functions 1 December 30th 07 01:33 PM
Data Validation formulas Lele Excel Discussion (Misc queries) 4 March 4th 07 02:10 PM
formulas for data validation Luke Excel Discussion (Misc queries) 3 July 25th 06 03:01 PM


All times are GMT +1. The time now is 07:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"