Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Comparing data on 2 worksheets

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Comparing data on 2 worksheets

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
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
Comparing data within worksheets Excel Help! Excel Discussion (Misc queries) 3 March 1st 10 10:15 PM
Comparing worksheets & input data Caseymom Excel Worksheet Functions 2 July 16th 09 01:04 PM
Comparing Data from two 2 worksheets Roberto R Excel Discussion (Misc queries) 17 December 2nd 06 02:58 PM
Comparing Data from two 2 worksheets Roberto R Excel Worksheet Functions 1 November 18th 06 04:52 PM
Comparing Data Between Worksheets Bryan Excel Discussion (Misc queries) 2 July 19th 05 01:29 PM


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

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"