PC Review


Reply
Thread Tools Rate Thread

Comparing data on 2 worksheets

 
 
richzip
Guest
Posts: n/a
 
      4th Nov 2008
I would like to know if there is a formula or macro that can accomplish the
following, related to pay increases for employees:

Worksheet 1: lists employees ID # (column A), along with their old pay rate
(column B), their new pay rate (column C), and the effective date of the
increase (column D).

Worksheet 2: lists all employees; each employee has 1 row for every date of
the month (some dates might have 2 rows). Data includes employee ID (column
A), date (column B), and a blank column where i would like to insert the pay
rate (column C)

For each employee that is listed in worksheet 1, I would like to copy the
old pay rate. That rate would then be pasted to column C of worksheet 2, for
every date that is less than the effective date listed on worksheet 1. Then,
it would paste the new rate onto every row that has a date that is greater
than or equal to the effective date.

Example:
On worksheet 1, Employee 1 has an old rate of 30, and a new rate of 40, with
an effetive date of 2/15/09
On worksheet 2, the "rate" column should have 30 for every row with a date
of 2/1/09-2/14/09, and 40 for every row with a date of 2/15/09-2/28/09.
 
Reply With Quote
 
 
 
 
richzip
Guest
Posts: n/a
 
      4th Nov 2008
One other point: If the employee on worksheet 2 is not found in worksheet 1,
then the "rate" column on worksheet 2 should be left blank.

"richzip" wrote:

> I would like to know if there is a formula or macro that can accomplish the
> following, related to pay increases for employees:
>
> Worksheet 1: lists employees ID # (column A), along with their old pay rate
> (column B), their new pay rate (column C), and the effective date of the
> increase (column D).
>
> Worksheet 2: lists all employees; each employee has 1 row for every date of
> the month (some dates might have 2 rows). Data includes employee ID (column
> A), date (column B), and a blank column where i would like to insert the pay
> rate (column C)
>
> For each employee that is listed in worksheet 1, I would like to copy the
> old pay rate. That rate would then be pasted to column C of worksheet 2, for
> every date that is less than the effective date listed on worksheet 1. Then,
> it would paste the new rate onto every row that has a date that is greater
> than or equal to the effective date.
>
> Example:
> On worksheet 1, Employee 1 has an old rate of 30, and a new rate of 40, with
> an effetive date of 2/15/09
> On worksheet 2, the "rate" column should have 30 for every row with a date
> of 2/1/09-2/14/09, and 40 for every row with a date of 2/15/09-2/28/09.

 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing Data from two 2 worksheets Roberto R Microsoft Excel Misc 16 24th Nov 2006 03:14 AM
Comparing Data from two 2 worksheets Roberto R Microsoft Excel Worksheet Functions 1 18th Nov 2006 04:52 PM
Comparing Data Between Worksheets =?Utf-8?B?QnJ5YW4=?= Microsoft Excel Misc 2 19th Jul 2005 01:29 PM
comparing data column in other worksheets and returning certain data fields Mary Microsoft Excel Worksheet Functions 5 2nd Feb 2004 08:02 PM
Comparing data between worksheets Peter D Microsoft Excel Worksheet Functions 3 29th Jul 2003 11:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:10 AM.