#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default lookup database

Hi,

I have a database

S = 5
UM = 4
MM = 3
LM = 2
J = 1

I have a list of people that i have ranked

A B
Jenny S
Max J

In Column C I would like the numerical equivalent of the letter ranking.
ie. Jenny is 5 and Max is 1

Is there a simpler approach than an embedded if statement? I have many more
ranks that I have list here and embedded ifs are not that practical.

Any help appreciated.

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default lookup database

just an IF functiion would do.
for example you have S or J etc. in A1
put this function in B1 (or where u like it)

=IF(A1=S,"5",if(A1=UM,"4",if(A1=MM,"3",IF(A1=LM,"2 ",1))))




"ellebelle" wrote:

Hi,

I have a database

S = 5
UM = 4
MM = 3
LM = 2
J = 1

I have a list of people that i have ranked

A B
Jenny S
Max J

In Column C I would like the numerical equivalent of the letter ranking.
ie. Jenny is 5 and Max is 1

Is there a simpler approach than an embedded if statement? I have many more
ranks that I have list here and embedded ifs are not that practical.

Any help appreciated.

Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default lookup database

Yes I could use an If Statement but this is a small example of a much larger
database. Is there a simpler approach than an if statement?

"Raz" wrote:

just an IF functiion would do.
for example you have S or J etc. in A1
put this function in B1 (or where u like it)

=IF(A1=S,"5",if(A1=UM,"4",if(A1=MM,"3",IF(A1=LM,"2 ",1))))




"ellebelle" wrote:

Hi,

I have a database

S = 5
UM = 4
MM = 3
LM = 2
J = 1

I have a list of people that i have ranked

A B
Jenny S
Max J

In Column C I would like the numerical equivalent of the letter ranking.
ie. Jenny is 5 and Max is 1

Is there a simpler approach than an embedded if statement? I have many more
ranks that I have list here and embedded ifs are not that practical.

Any help appreciated.

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default lookup database

Suppose your database is listed in Sheet1 in columns A and B like
this:

S 5
UM 4
MM 3
LM 2
J 1

and so on. Then if your names and rankings are in Sheet2, you can put
this formula in C1:

=VLOOKUP(B1,Sheet1!A:B,2,0)

and copy down as required.

Hope this helps.

Pete

On Oct 13, 8:29*am, ellebelle
wrote:
Yes I could use an If Statement but this is a small example of a much larger
database. Is there a simpler approach than an if statement?



"Raz" wrote:
just an IF functiion would do.
for example you have S or J etc. in A1
put this function in B1 (or where u like it)


=IF(A1=S,"5",if(A1=UM,"4",if(A1=MM,"3",IF(A1=LM,"2 ",1))))


"ellebelle" wrote:


Hi,


I have a database


S = 5
UM = 4
MM = 3
LM = 2
J = 1


I have a list of people that i have ranked


A * * * * * *B
Jenny * * S
Max * * * *J


In Column C *I would like the numerical equivalent of the letter ranking.
ie. Jenny is 5 and Max is 1


Is there a simpler approach than an embedded if statement? I have many more
ranks that I have list here and embedded ifs are not that practical.


Any help appreciated.


Thanks!- Hide quoted text -


- Show quoted text -


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
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
Lookup information in Access Database John Excel Discussion (Misc queries) 3 April 27th 07 03:35 PM
How to make reference to database and if true copy from database? V!p3r Excel Discussion (Misc queries) 4 February 5th 07 02:19 PM
Code to 'lookup' value in Access database maacmaac Excel Discussion (Misc queries) 0 September 16th 05 02:52 AM
Database Lookup Raymond Gallegos Excel Worksheet Functions 1 December 22nd 04 01:44 AM


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