Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Can I do two validations on a cell?

I have a validation on a cell which is bringing a list of code numbers. At
the same time in the same cell, I will like the names related to this codes
to show for users to be able to identify the name of these codes. How can I
do this?

Example:

List of codes Name of codes
15 Human Resource
33 Training

On the validation cell right now the list of codes is showing up, I want to
have the name of these codes showing as well when people are choosing the
code.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Can I do two validations on a cell?

Here's one play to achieve this
using a combo box from the control toolbox toolbar ..

A sample construct is available at:
http://cjoint.com/?jbdYVnd81t
Combo box from control toolbox toolbar_example_2.xls
[ Link is good for 14 days ]

Assume source data is in Sheet1!A1:B3

List of codes Name of codes
15 Human Resource
33 Training

In say, Sheet2,
Draw a combo box from the control toolbox toolbar
Right-click on the combo box Properties

Set the properties of the combo box to:
ListFillRange: Sheet1!A2:B3
LinkedCell: B2
BoundColumn: 1
ColumnCount: 2
ColumnHeads: True

Click "Exit Design Mode" on the Control Toolbox toolbar, and test it out.
The combo box droplist will display both codes & names list as desired.
Selecting the code will place it into the link cell: B2.

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
I have a validation on a cell which is bringing a list of code numbers. At
the same time in the same cell, I will like the names related to this codes
to show for users to be able to identify the name of these codes. How can I
do this?

Example:

List of codes Name of codes
15 Human Resource
33 Training

On the validation cell right now the list of codes is showing up, I want to
have the name of these codes showing as well when people are choosing the
code.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Can I do two validations on a cell?

Hi,

You can achieve this with this too..

1. In a column which will never be accessed by anyone else. Let this be
hidden.
2. Write a formula to concatenate the two values. Say,

=A1&" --- "&B1

3. Copy down till you need the two values to be concatenated.
4. Name the list Insert/Name/Define
4. Make a dropdown list which is named by you just now.

Hope this will help you.


Thanks,

Shail

wrote:
I have a validation on a cell which is bringing a list of code numbers. At
the same time in the same cell, I will like the names related to this codes
to show for users to be able to identify the name of these codes. How can I
do this?

Example:

List of codes Name of codes
15 Human Resource
33 Training

On the validation cell right now the list of codes is showing up, I want to
have the name of these codes showing as well when people are choosing the
code.


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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


All times are GMT +1. The time now is 01:11 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"