Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Help with macro

I would like to know if a macro can be set up to perform the following: I
have a large workbook with data for several employees, and each employee
number (column A) has at least 1 line for every date of the month.

If any of the rows for each employee has a certain value (RSV) in column C,
I would like to copy that value over to column D. For example: employee 123
has the code RSV in column C for one of his rows, so I would like to copy all
values in column C (for that employee), to the corresponding row in column D.
Employee 456 does not have the code RSV for any rows, so column D for that
employee is left alone.

Original:
A B C D
123 1/1 OFF OFF
123 1/2 OFF aaaa
123 1/3 RSV bbbb
456 1/1 xxxx xxxx
456 1/2 OFF OFF


Result:
A B C D
123 1/1 OFF OFF
123 1/2 OFF OFF
123 1/3 RSV RSV
456 1/1 xxxx xxxx
456 1/2 OFF OFF

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
Macro recorded... tabs & file names changed, macro hangs Steve Excel Worksheet Functions 3 October 30th 09 11:41 AM
Macro to copy and paste values (columns)I have a macro file built C02C04 Excel Programming 2 May 2nd 08 01:51 PM
how to count/sum by function/macro to get the number of record to do copy/paste in macro tango Excel Programming 1 October 15th 04 01:16 PM
macro to delete entire rows when column A is blank ...a quick macro vikram Excel Programming 4 May 3rd 04 08:45 PM
Start Macro / Stop Macro / Restart Macro Pete[_13_] Excel Programming 2 November 21st 03 05:04 PM


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