Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Finding Name associated with Abbreivation

Lets say I have a table
1 2
A dd Dog
B dd Dog
C cc Cat
D cc Cat
E mm Monkey
F hh Horse
G hh Horse

Then I have another table, lets say in the same worksheet that says

1 2
A dd 1937
B cc 6846
C mm 456
D hh 22

I want to combine the info to have a table that says
Dog dd 1937
Cat cc 6846
Monkey mm 456
Horse hh 22

Can I even do this type of thing with an excel formula? I played
around with doing it in Access but the fact that the first table has a
lot of duplicates throws the queries off, so I would have to remove all
the duplicates in the first table before using access. It seems like
using one of the lookup formulas in excel would work, but I am going
crazy trying to figure it out.

Thanks,
Andrew V. Romero

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Finding Name associated with Abbreivation

Hi,
Check VLOOKUP function.

Insert extra column (A) into your second table and in first cell (A1?) put

=Vlookup(b1,$x$1:$y$100,2)

where $X$1:$Y$100 is the data in "table 1" i.e. contains DD Dog etc

Copy this formula down for all entries in table 2.

It will use the abbrevation e.g "dd" from table 2 to look up the
corresponding value in table 1 and select the second entry (the 2 is the
parameter for this) i.e "dd" will select "Dog."

HTH

" wrote:

Lets say I have a table
1 2
A dd Dog
B dd Dog
C cc Cat
D cc Cat
E mm Monkey
F hh Horse
G hh Horse

Then I have another table, lets say in the same worksheet that says

1 2
A dd 1937
B cc 6846
C mm 456
D hh 22

I want to combine the info to have a table that says
Dog dd 1937
Cat cc 6846
Monkey mm 456
Horse hh 22

Can I even do this type of thing with an excel formula? I played
around with doing it in Access but the fact that the first table has a
lot of duplicates throws the queries off, so I would have to remove all
the duplicates in the first table before using access. It seems like
using one of the lookup formulas in excel would work, but I am going
crazy trying to figure it out.

Thanks,
Andrew V. Romero


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
Finding a Value SueK Excel Discussion (Misc queries) 3 September 21st 08 07:27 PM
Finding the value of x bpiepkorn Excel Worksheet Functions 4 July 26th 07 04:02 PM
Finding The MAX Value carl Excel Worksheet Functions 6 July 25th 07 09:36 PM
finding value ceemo Excel Discussion (Misc queries) 4 April 20th 06 02:16 PM
Finding a sum Realwoodies Excel Programming 3 February 25th 04 11:46 PM


All times are GMT +1. The time now is 06:39 PM.

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"