Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old July 23rd, 2003, 08:29 AM
amod amod is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 6 amod User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Pl HELP! Excel search

i have an excel file (file1.xls) with 2 columns (first name) & (last name) and another file (file2.xls) with 3 columns (first name) , (last name) & (Age).

pl suggest a way to search the combination (first name & last name) from file1 in file2, retreive the corresponding Age from file2...and place it in file1.

no 2 combinations will be same.

THANKS in ADVANCE!

Reply With Quote
  #2  
Old July 23rd, 2003, 10:31 AM
Silian's Avatar
Silian Silian is offline
Gogga
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 198 Silian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
The best way (if you are not going to do this to often and it's a long list) would be to use formulas.
1) Open both of your spreadsheets.
2) In the next column of file1 add a formula to combine both fields =A1&" " &B1 (I'm assuming that A1 is the name and B1 the surname) Copy this through to the bottom of your list
3) Add another column between your surname and age in file2 and combine the name and surname as you did in 2 for that column. Copy through to bottom of your list.
4) Use the vlookup function on file1 to find the age in file 2 (best is to use wizard. =VLOOKUP(C1,[Book3]Sheet1!$C:$D,2,FALSE) Copy through to end of text
5) Remember to copy and paste special (values) your text afterwards!


If you want a macro to do this, it's going to be more complicated. Let me know and I'll give you some pointers.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Pl HELP! Excel search


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway