PC Review


Reply
Thread Tools Rate Thread

Data Validation - Dependent List

 
 
Prasad Gopinath
Guest
Posts: n/a
 
      29th Jun 2008
I have a spreadsheet where I need to set up Data Validation for a Dependent
list.

Sheet 1 - Validation List
Column A - Service
Column B - Price

Cell A1 value - Super NYC Show
Cell B1 value - $ 75

Is there any way I can set up Data Validation in Sheet 2 where if I selected
Selected Super NYC Show in Sheet 2, it will automatically pull up the
corresponding $ 75 value in the adjacent cell of the said spread sheet?

Prasad

 
Reply With Quote
 
 
 
 
Doug Glancy
Guest
Posts: n/a
 
      29th Jun 2008
Prasad,

Take a look at this site:

http://www.contextures.com/xlDataVal02.html

hth,

Doug

"Prasad Gopinath" <(E-Mail Removed)> wrote in
message news:12E06888-ABAC-4A96-ABE7-(E-Mail Removed)...
>I have a spreadsheet where I need to set up Data Validation for a
>Dependent
> list.
>
> Sheet 1 - Validation List
> Column A - Service
> Column B - Price
>
> Cell A1 value - Super NYC Show
> Cell B1 value - $ 75
>
> Is there any way I can set up Data Validation in Sheet 2 where if I
> selected
> Selected Super NYC Show in Sheet 2, it will automatically pull up the
> corresponding $ 75 value in the adjacent cell of the said spread sheet?
>
> Prasad
>



 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      29th Jun 2008
You can use a VLookup formula to show the price for the selected
service. There's an example in an Order Form, shown here:

http://www.contextures.com/xlOrderForm01.html

Prasad Gopinath wrote:
> I have a spreadsheet where I need to set up Data Validation for a Dependent
> list.
>
> Sheet 1 - Validation List
> Column A - Service
> Column B - Price
>
> Cell A1 value - Super NYC Show
> Cell B1 value - $ 75
>
> Is there any way I can set up Data Validation in Sheet 2 where if I selected
> Selected Super NYC Show in Sheet 2, it will automatically pull up the
> corresponding $ 75 value in the adjacent cell of the said spread sheet?
>
> Prasad
>



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com

 
Reply With Quote
 
RyanH
Guest
Posts: n/a
 
      30th Jun 2008
I would use the double click event in the Worksheet 2 Module. The code below
assumes the cells you will be clicking on is in Col.A. All you have to do is
double click the cell and the code will execute to what you want.

Option Explicit

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)

Dim Service As Range

If Target.Column = 1 Then

'prevents default action
Cancel = True

'sets range and enters value from sheet1
Set Service = Sheets("Sheet1").Range("A:A").Find(What:=Target,
LookIn:=xlValues)
Target.Offset(0, 1).Value = Service.Offset(0, 1).Value

End If

End Sub

Hope this helps! If so click "Yes" below.
--
Cheers,
Ryan


"Prasad Gopinath" wrote:

> I have a spreadsheet where I need to set up Data Validation for a Dependent
> list.
>
> Sheet 1 - Validation List
> Column A - Service
> Column B - Price
>
> Cell A1 value - Super NYC Show
> Cell B1 value - $ 75
>
> Is there any way I can set up Data Validation in Sheet 2 where if I selected
> Selected Super NYC Show in Sheet 2, it will automatically pull up the
> corresponding $ 75 value in the adjacent cell of the said spread sheet?
>
> Prasad
>

 
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
Dependent list in data validation - more than 2 columns YY san. Microsoft Excel Worksheet Functions 5 22nd Mar 2009 05:24 PM
Data Validation - Dependent List Prasad Gopinath Microsoft Excel Misc 1 29th Jun 2008 10:08 PM
Dependent List - Data Validation =?Utf-8?B?VG9uaQ==?= Microsoft Excel Discussion 1 7th Feb 2007 07:45 AM
data validation--multiple dependent list =?Utf-8?B?TWljaGFlbA==?= Microsoft Excel Misc 9 2nd May 2006 01:14 AM
Dependent List- Data Validation =?Utf-8?B?QW5uaWU=?= Microsoft Excel Worksheet Functions 2 23rd Sep 2005 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:33 AM.