#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rich Rosier
 
Posts: n/a
Default IF Formula

Challenge: I have a column full of sales peoples names. I would like to
write a formula that will identify the persons name in the column and in the
same row, but a different column enter a letter that correspondes to what
type of sales person they are in our organization.

Example: John Smith is listed in the column and he is a National Account
Manager so I would like a formula that recognizes his name and puts "NAM" in
a free cell in his row of information.

Does Excel 2002 have a function that can do this?

Thanks very much.
rich
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default IF Formula

The *most* correct way would be to drive the data from the EmployeeID (you'll
see why). But for what you asked for:

On a separate sheet, build a 2-col table containing names and types:
Name Type
Coderre,Ron MGR
Rosier,Rich OP
etc

Make sure you have an enforced convention for names (Example: Lname,Fname Mi)

Select that range and define a name for it:
InsertNameDefine
Names In Workbook: LU_EmpName
Refers to: (your range)

Then, on the data sheet, if a name is in A2, then:
B2: =VLOOKUP(A2,LU_EmpName,2,0)

That will find the name from A2 in the 1st column of the LU_EmpName range
and return the corresponding value in the second column. For example, if A2
contains Coderre,Ron then the formula wil return MGR.

To make things more fool-proof....you might want to use Data Validation on
the name input cells to ensure that only correctly spelled, validly formatted
names are used.

Does that help?

***********
Regards,
Ron


"Rich Rosier" wrote:

Challenge: I have a column full of sales peoples names. I would like to
write a formula that will identify the persons name in the column and in the
same row, but a different column enter a letter that correspondes to what
type of sales person they are in our organization.

Example: John Smith is listed in the column and he is a National Account
Manager so I would like a formula that recognizes his name and puts "NAM" in
a free cell in his row of information.

Does Excel 2002 have a function that can do this?

Thanks very much.
rich

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
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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

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

About Us

"It's about Microsoft Excel"