Bringing together 2 sets of data

wrightyrx7

Well-known Member
Joined
Sep 15, 2011
Messages
994
Hi all,

I have to set of data. Both lists have a Employee reference which is unique to each person.

First: List of all positions people have ever had in the company with start and end date.

Second: List of all the salaries people have had within the company with a start and end date.

I need to bring this data together. However, if someone has had more than one salary between the start and end date of a position i need to insert a row with the same position details but each row will contain the 2 different salaries.

I have tried to do an example below.

Basically Employee 1 has had 2 positions but only 1 salary - so out the outcome they have 2 lines for each position but the same salary for both.

Employee 3 has had 2 positions but had a change in salary in the first one - so the outcome shows 2 lines for the first position because they had a salary change. Then the second position has one line because although its a new salary it started the same day as the position change.

Example.png


I hope this makes sense. I just chant get my head round how to do this.

Thanks
Chris

55Md4MQ
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Cross posted http://www.vbaexpress.com/forum/showthread.php?64709-Bringing-together-2-sets-of-data

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
What version of Excel do you use ?

Excel 2013 and I use the Office 365 version when im in the office.

Cross posted http://www.vbaexpress.com/forum/showthread.php?64709-Bringing-together-2-sets-of-data

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.

Apologies, noted for next time. Thanks.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top