Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default delicate Excel-database problem

I have two files containg employee data. File "name" contains two
colons: Name and Cardnumber like this:

Andersen John, 98372839
Angell Berit, 53827384
Bang Jens, 98128493

and my second file contains two colons: Name and username

Angell Berit, angber
Henriksen Christopher, henchr

As you see some of the names appear in both files, some don't. I need
to have a file with Cardnumber (from first file) and username (from
the second file).
Can this be done? Please help

thanks in advance
khers
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default delicate Excel-database problem

Let's say the first set of data is in A1:B100 and the second in F1:G80
In C1 enter =VLOOKUP(A1,F1:G80,2,FALSE) to pick up the username
But you say that some people my not have a username?
So change formula to
=IF(ISNA(VLOOKUP(A1,F1:G80,2,FALSE)),"",VLOOKUP(A1 ,F1:G80,2,FALSE))
so that you do not get error values for missing people


If you now a list with just card numbers and usernames:
Select B1:D100; copy
Move to new worksheet, use Edit | Paste Special with Values specified
Sort this data so as to remove the blanks

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"khers" wrote in message
...
I have two files containg employee data. File "name" contains two
colons: Name and Cardnumber like this:

Andersen John, 98372839
Angell Berit, 53827384
Bang Jens, 98128493

and my second file contains two colons: Name and username

Angell Berit, angber
Henriksen Christopher, henchr

As you see some of the names appear in both files, some don't. I need
to have a file with Cardnumber (from first file) and username (from
the second file).
Can this be done? Please help

thanks in advance
khers



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default delicate Excel-database problem

Excel 2007 Tables
Consolidate tabs, consolidate rows.
Uses macro.
http://www.mediafire.com/file/qommjogdyla/08_12_09.xlsm
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
Update Excel Database via Access Main Database with a script Finnbar New Users to Excel 2 November 3rd 08 07:24 PM
Database problem Mark Excel Discussion (Misc queries) 2 July 22nd 08 09:48 PM
Excel query of Postgress database - schema case problem.. Frank Brown Excel Discussion (Misc queries) 0 February 12th 07 09:18 PM
database problem? Rod Excel Discussion (Misc queries) 1 February 26th 06 01:47 AM
have some problem with database baldamenti Excel Discussion (Misc queries) 1 October 13th 05 05:38 PM


All times are GMT +1. The time now is 09:03 PM.

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"