Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default Returning matched employee number from a different sheet

Hi everyone,

I've got two sheets containing data on the same group of people.
Data and Results.
The personnel info in Data is more complete than in Results
Data has Forename, Middle Name, Surname, DOB, Gender and most importantly an
unique Employee Ref.
Results contains Forename , Surname , DOB and Gender some, but not many Emp
Ref.
I would like to pull the Employee Ref from Data into results.

I think it's probably a case of doing Index Match on each set of data
because there will be mismatches due to differences in known by name and the
name held by records, people getting married and typing errors etc.

I haven't made a start yet but I'm planning to start by creating a helper
column with concatenated Surname, DOB and using Index Match and working from
there.

One problem I'm anticipating is if there are multiple matches and I am sure
there are more problems, so if anyone has any tips or helpful websites, I'd
be very grateful. I did find one website that gave a method for finding
matching text and a range of different formulas to find partially matching
text but can't find it now.

Many thanks
Diddy

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Returning matched employee number from a different sheet

Debra Dalgleish has lots of notes:
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html (for =index(match()))
and
http://contextures.com/xlFunctions02.html#Trouble

I would concatenate the strings in a new column A:
=b1&"|"&c1&"|"&d1&"|"&....
Using a unique separation string/character that isn't found in any of the
cells. That way, I know my fields won't be combined to match any existing field
(just by random chance).

I'd ignore the date showing up as a serial number, too. But if it concerns you,
you could use:
=b1&"|"&text(c1,"yyyy-mm-dd")&"|"&...
to make things look prettier.

But before I'd use this table, I'd clean up the data so that there was exactly
one entry per employee number--and that'll be the difficult/frustrating thing
(well, if the list is any size at all).

I'd sort by emp#, then add a helper column that counts the number of times that
emp# appears in the list.

I'd use a helper column with a formula like:
=countif(E:E,E1)
and drag down.

Then I could apply an autofilter to show the values greater than 1 and start the
work.

Remember to save often--and even save as a new name every so often. It'll be
easier to go back to one of those saved versions when you realize you screwed up
something really badly!

Diddy wrote:

Hi everyone,

I've got two sheets containing data on the same group of people.
Data and Results.
The personnel info in Data is more complete than in Results
Data has Forename, Middle Name, Surname, DOB, Gender and most importantly an
unique Employee Ref.
Results contains Forename , Surname , DOB and Gender some, but not many Emp
Ref.
I would like to pull the Employee Ref from Data into results.

I think it's probably a case of doing Index Match on each set of data
because there will be mismatches due to differences in known by name and the
name held by records, people getting married and typing errors etc.

I haven't made a start yet but I'm planning to start by creating a helper
column with concatenated Surname, DOB and using Index Match and working from
there.

One problem I'm anticipating is if there are multiple matches and I am sure
there are more problems, so if anyone has any tips or helpful websites, I'd
be very grateful. I did find one website that gave a method for finding
matching text and a range of different formulas to find partially matching
text but can't find it now.

Many thanks
Diddy


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default Returning matched employee number from a different sheet

Thank you :-)

That's brilliant. I'm going to get stuck in now armed with pointers and info.

Thank you again
Diddy


"Dave Peterson" wrote:

Debra Dalgleish has lots of notes:
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html (for =index(match()))
and
http://contextures.com/xlFunctions02.html#Trouble

I would concatenate the strings in a new column A:
=b1&"|"&c1&"|"&d1&"|"&....
Using a unique separation string/character that isn't found in any of the
cells. That way, I know my fields won't be combined to match any existing field
(just by random chance).

I'd ignore the date showing up as a serial number, too. But if it concerns you,
you could use:
=b1&"|"&text(c1,"yyyy-mm-dd")&"|"&...
to make things look prettier.

But before I'd use this table, I'd clean up the data so that there was exactly
one entry per employee number--and that'll be the difficult/frustrating thing
(well, if the list is any size at all).

I'd sort by emp#, then add a helper column that counts the number of times that
emp# appears in the list.

I'd use a helper column with a formula like:
=countif(E:E,E1)
and drag down.

Then I could apply an autofilter to show the values greater than 1 and start the
work.

Remember to save often--and even save as a new name every so often. It'll be
easier to go back to one of those saved versions when you realize you screwed up
something really badly!

Diddy wrote:

Hi everyone,

I've got two sheets containing data on the same group of people.
Data and Results.
The personnel info in Data is more complete than in Results
Data has Forename, Middle Name, Surname, DOB, Gender and most importantly an
unique Employee Ref.
Results contains Forename , Surname , DOB and Gender some, but not many Emp
Ref.
I would like to pull the Employee Ref from Data into results.

I think it's probably a case of doing Index Match on each set of data
because there will be mismatches due to differences in known by name and the
name held by records, people getting married and typing errors etc.

I haven't made a start yet but I'm planning to start by creating a helper
column with concatenated Surname, DOB and using Index Match and working from
there.

One problem I'm anticipating is if there are multiple matches and I am sure
there are more problems, so if anyone has any tips or helpful websites, I'd
be very grateful. I did find one website that gave a method for finding
matching text and a range of different formulas to find partially matching
text but can't find it now.

Many thanks
Diddy


--

Dave Peterson
.

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
Lookup Function? Employee Number with Employee Name Lance Hebert[_2_] Excel Worksheet Functions 1 March 9th 10 05:25 PM
How to find the number of matched date? Eric Excel Discussion (Misc queries) 1 October 9th 07 11:37 AM
Matching numbers in an Array and returning values for matched numb Tiger Excel Discussion (Misc queries) 8 April 26th 07 06:14 AM
Employee Time Sheet suntzu Excel Worksheet Functions 2 October 28th 06 07:21 AM
Employee number and name Dave S New Users to Excel 7 August 27th 05 02:21 PM


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