T
Tom Bock
I have 2 worksheets... the first one is the "master sheet" while the second
one is a "working sheet".
Both worksheets contain the same data types (text) in column A and B.
More Information:
- Currently, the mastersheet contains a static set of let's say 500 "Task
No" (1st level, 2nd level, 3rd level... e.g. "1", "1.1", "1.1.1").
- The working sheet also contains the Task No but it may have only a small
subset of them (let's say only 15 task numbers out of 500 task numbers)
- The mastersheet does not have any Task Names while the working sheet has
the 15 Task Names that correspond to the 15 task numbers.
Here's what I need to achieve:
1. Wherever there is a match of the Task No in both worksheets (column A),
copy the Task Name from the working sheet in Column B and paste it into the
appropriate cell of column B of the Master Sheet.
2. Please see the BEFORE & AFTER samples below (which shows the the row
number will not be the same for the two working sheets.
Sample BEFORE Function/Macro is Executed:
Mastersheet Working Sheet
===================== =====================
Col A Col B Col A Col B
1 1.2 do x
1.1 1.3.2 do y
1.2 2.2 do z
1.3
1.3.1
1.3.2
1.4
2
2.1
2.2
2.2.1
2.2.2
Sample AFTER Function/Macro is Executed:
Mastersheet Working Sheet
===================== =====================
Col A Col B Col A Col B
1 1.2 do task x
1.1 1.3.2 do task y
1.2 do task x 2.2 do task z
1.3
1.3.1
1.3.2 do task y
1.4
2
2.1
2.2 do task z
2.2.1
2.2.2
Now my Question:
Is there a way to write a function or macro that reads column A in both
worksheets and where it finds a match in the Task No (text format since I'll
have e.g. numbers such as "1.1.1"), then copies the Task Names values from
the working sheet and paste those values into the appropriate Task Name cell
(column B) of the Mastersheet?
Thanks,
Tom
one is a "working sheet".
Both worksheets contain the same data types (text) in column A and B.
More Information:
- Currently, the mastersheet contains a static set of let's say 500 "Task
No" (1st level, 2nd level, 3rd level... e.g. "1", "1.1", "1.1.1").
- The working sheet also contains the Task No but it may have only a small
subset of them (let's say only 15 task numbers out of 500 task numbers)
- The mastersheet does not have any Task Names while the working sheet has
the 15 Task Names that correspond to the 15 task numbers.
Here's what I need to achieve:
1. Wherever there is a match of the Task No in both worksheets (column A),
copy the Task Name from the working sheet in Column B and paste it into the
appropriate cell of column B of the Master Sheet.
2. Please see the BEFORE & AFTER samples below (which shows the the row
number will not be the same for the two working sheets.
Sample BEFORE Function/Macro is Executed:
Mastersheet Working Sheet
===================== =====================
Col A Col B Col A Col B
1 1.2 do x
1.1 1.3.2 do y
1.2 2.2 do z
1.3
1.3.1
1.3.2
1.4
2
2.1
2.2
2.2.1
2.2.2
Sample AFTER Function/Macro is Executed:
Mastersheet Working Sheet
===================== =====================
Col A Col B Col A Col B
1 1.2 do task x
1.1 1.3.2 do task y
1.2 do task x 2.2 do task z
1.3
1.3.1
1.3.2 do task y
1.4
2
2.1
2.2 do task z
2.2.1
2.2.2
Now my Question:
Is there a way to write a function or macro that reads column A in both
worksheets and where it finds a match in the Task No (text format since I'll
have e.g. numbers such as "1.1.1"), then copies the Task Names values from
the working sheet and paste those values into the appropriate Task Name cell
(column B) of the Mastersheet?
Thanks,
Tom