Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Unsure of the Function, and How to Write It

This may be a very basic question, so excuse my ignorance!

I have developed a Data Validation setting that refers to a list (Titles):

Mr
Mrs
Miss
Ms
Dr

I have this list on a separate sheet (Lists). On Sheet 1, I want to have
the data entry team select from the list. That is working fine, in column C
of Sheet1. My database requires that the above titles all be converted to
numbers: 1 for Mr, 2 for Mrs and so on, with 5 for Dr. I actually need to
import both the text, and the number. I'm trying to automate the process so
that when Mr is selected from the drop down menu in column C, then the number
1 will appear in column B. When Mrs is selected from the drop down menu in
column C, then the number 2 will appear in column B. On the Lists
spreadsheet I had created a column adjacent to the Titles fields with 1
through 5. I thought I would be able to somehow have the cells on Sheet 1
use the Titles and the numbers area from the Lists sheet, but I can't get it
to work. Can someone pls advise me how I can achieve this?

I am very new to this type of Excel work, so would appreciate the simplest
explanation possible!

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Unsure of the Function, and How to Write It

in B2:

=VLOOKUP(C2,Lists!A:B,2,0)

assuming your Titles & Numbers are in Lists, columns A & B

HTH

"Jane" wrote:

This may be a very basic question, so excuse my ignorance!

I have developed a Data Validation setting that refers to a list (Titles):

Mr
Mrs
Miss
Ms
Dr

I have this list on a separate sheet (Lists). On Sheet 1, I want to have
the data entry team select from the list. That is working fine, in column C
of Sheet1. My database requires that the above titles all be converted to
numbers: 1 for Mr, 2 for Mrs and so on, with 5 for Dr. I actually need to
import both the text, and the number. I'm trying to automate the process so
that when Mr is selected from the drop down menu in column C, then the number
1 will appear in column B. When Mrs is selected from the drop down menu in
column C, then the number 2 will appear in column B. On the Lists
spreadsheet I had created a column adjacent to the Titles fields with 1
through 5. I thought I would be able to somehow have the cells on Sheet 1
use the Titles and the numbers area from the Lists sheet, but I can't get it
to work. Can someone pls advise me how I can achieve this?

I am very new to this type of Excel work, so would appreciate the simplest
explanation possible!

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Unsure of the Function, and How to Write It

Thanks Toppers. It worked, and I applied it to 2 other areas. I don't
really understand it, but I have read the Help on Vlookup, and have a little
bit of a grasp of what is happening!

Much appreciated.

Jane

"Toppers" wrote:

in B2:

=VLOOKUP(C2,Lists!A:B,2,0)

assuming your Titles & Numbers are in Lists, columns A & B

HTH

"Jane" wrote:

This may be a very basic question, so excuse my ignorance!

I have developed a Data Validation setting that refers to a list (Titles):

Mr
Mrs
Miss
Ms
Dr

I have this list on a separate sheet (Lists). On Sheet 1, I want to have
the data entry team select from the list. That is working fine, in column C
of Sheet1. My database requires that the above titles all be converted to
numbers: 1 for Mr, 2 for Mrs and so on, with 5 for Dr. I actually need to
import both the text, and the number. I'm trying to automate the process so
that when Mr is selected from the drop down menu in column C, then the number
1 will appear in column B. When Mrs is selected from the drop down menu in
column C, then the number 2 will appear in column B. On the Lists
spreadsheet I had created a column adjacent to the Titles fields with 1
through 5. I thought I would be able to somehow have the cells on Sheet 1
use the Titles and the numbers area from the Lists sheet, but I can't get it
to work. Can someone pls advise me how I can achieve this?

I am very new to this type of Excel work, so would appreciate the simplest
explanation possible!

Thanks,

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Unsure of the Function, and How to Write It

Debra Dalgleish has lots of notes on =vlookup():
http://www.contextures.com/xlFunctions02.html

Jane wrote:

Thanks Toppers. It worked, and I applied it to 2 other areas. I don't
really understand it, but I have read the Help on Vlookup, and have a little
bit of a grasp of what is happening!

Much appreciated.

Jane

"Toppers" wrote:

in B2:

=VLOOKUP(C2,Lists!A:B,2,0)

assuming your Titles & Numbers are in Lists, columns A & B

HTH

"Jane" wrote:

This may be a very basic question, so excuse my ignorance!

I have developed a Data Validation setting that refers to a list (Titles):

Mr
Mrs
Miss
Ms
Dr

I have this list on a separate sheet (Lists). On Sheet 1, I want to have
the data entry team select from the list. That is working fine, in column C
of Sheet1. My database requires that the above titles all be converted to
numbers: 1 for Mr, 2 for Mrs and so on, with 5 for Dr. I actually need to
import both the text, and the number. I'm trying to automate the process so
that when Mr is selected from the drop down menu in column C, then the number
1 will appear in column B. When Mrs is selected from the drop down menu in
column C, then the number 2 will appear in column B. On the Lists
spreadsheet I had created a column adjacent to the Titles fields with 1
through 5. I thought I would be able to somehow have the cells on Sheet 1
use the Titles and the numbers area from the Lists sheet, but I can't get it
to work. Can someone pls advise me how I can achieve this?

I am very new to this type of Excel work, so would appreciate the simplest
explanation possible!

Thanks,


--

Dave Peterson
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
how do you write format results of a function within a function? sangee Excel Worksheet Functions 3 June 14th 07 12:45 AM
How to write this function? Zilla[_2_] Excel Worksheet Functions 7 February 19th 07 09:55 PM
Help me write a function please? justo316 Excel Worksheet Functions 10 January 12th 06 06:10 PM
Unsure about which functions to use Rich Excel Worksheet Functions 4 April 21st 05 10:37 PM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM


All times are GMT +1. The time now is 07:04 AM.

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"