?
Solved

Set value of a column based on lookup value of another column.

Posted on 2009-05-11
5
Medium Priority
?
309 Views
Last Modified: 2012-05-06
Hello -

Here is what I am trying to do (in a simple example) -

Existing list List A -
Color Name  Color Number
Red                   1
Blue                  2
Green               3

List B -
A User enters in information, and one of the required fields is "Color".  This column is set up as a lookup of the "Color Name" values in List A.  We would like the next field in List B to be automatically set to the "Color Number" field that coorosponds with the users choice in the Color Name column.

Is there a way to do this?  (With out custom programing - or simple code at least as I know Designer but I am NOT a programmer.)

Thanks in advance!
0
Comment
Question by:dasmail2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 25

Expert Comment

by:Robbie_Leggett
ID: 24354673
Just use a calculated column.
 
IF Colour = Red value = 1
IF colour = Blue value = 2
IF colour = Green value = 3
 
:-)
0
 
LVL 25

Accepted Solution

by:
Robbie_Leggett earned 2000 total points
ID: 24354697
An easier way would be to use a SharePoint Designer workflow using the above parameters, so that when the item is saved it sets the value of the colour code field.
 
:-)
0
 
LVL 1

Author Comment

by:dasmail2000
ID: 24354715
Thougt of that and we could do that...but "List A" may change over time and I'd like to avoid having to go in and edit that column every time it does.  I would rather make it be a dynamic lookup of the values.

Any other thoughts?
0
 
LVL 1

Author Comment

by:dasmail2000
ID: 24354744
Previous comment was on your first post.


On the second post - Geat idea!  I did not even think on doing that and it should work fine.

I am going to give that a try - thanks!!
0
 
LVL 25

Expert Comment

by:Robbie_Leggett
ID: 24354795
You're very welcome. Come back to me with any issues.
 
:-)
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question