I have two workbooks. In workbook "Number 1" I have an active sheet named "XYZ" with a column A containing list of Names and column B which is as follows
A ....................... B
Names ......... Budgeted
Pamela ............... 3
Pamela ............... 2
Pamela ............... 4
Pamela ............... 5
Kim .................... 1
Kim .................... 4
Michaela ...............2
Michaela .............. 5
Michaela .............. 1
Michaela .............. 8
Michaela ............. 10
OPTIONAL 1st I need to insert row under each last same name and sum values:
A .....................B
Names ...............Budgeted
Pamela ...............3
Pamela ...............2
Pamela ...............4
Pamela ...............5
...........................14
Kim ....................1
Kim ....................4
...........................5
Michaela ...............2
Michaela ..............5
Michaela ..............1
Michaela ..............8
Michaela .............10
...........................26
In workbook "Number 2" I have tabs named by same names as in workbook "Number 1" (So tab named "Pamela", "Kim", "Michaela").
I'm looking for macro that will find-match name ("Pamela") on the active sheet in column A with corresponding tab name in workbook "Number 2" , copy value A1 (eg. 20) from tab name ("Pamela") and paste it in the (optional) inserted row or in the last row of each name :
A .....................B.................C
Names ...............Budgeted........Actual
Pamela ...............3
Pamela ...............2
Pamela ...............4
Pamela ...............5
...........................14.................20
Kim ....................1
Kim ....................4
...........................5....................3
Michaela ...............2
Michaela ..............5
Michaela ..............1
Michaela ..............8
Michaela .............10
...........................26..................30
I appreciate any effort and suggestions!
Bookmarks