RiskControlsAnalyst
New Member
- Joined
- Feb 13, 2019
- Messages
- 2
Hi,
First of all, thanks for taking the time to look at my post!
I have multiple excel workbooks(all with just the one sheet) which is the daily output from another system. Multipleworkbooks sometimes have the same value in column A (essentially an ID number)but different values in the following columns of that row.
I'm looking to use a separateworkbook with a macro/query which finds duplicates in column A of all of theworkbooks within a given folder. All duplicates found, accompanied with all thedata in that row, will then be collated into a workbook.
The first 5 rows of each ofthe reports needs to be excluded from the duplicate-output (title/date ofreport, blank rows), with the headers being row7 (same headers on every output).However, row8 also needs to be excluded (cumulative totals of each column).
Example of data:
Workbook1-(Monday’s DataOutput)
---- A ---- B ---- C ---- D
1 [Report Title]
2
3 [Date]
…
6 ------ ID --------- Colour---- Oth1 ---- Oth2
7 ------ N/A ------- N/A --------3 -------- 2
8 ------ 10001 ---- Blue -------1 -------- 0
9 ------ 10002 ---- Brown -----1 ------- 0
10 ---- 10003 ---- Blue ------- 0 ------- 0
11 ---- 10004 ---- Green -----0 ------- 1
12 ---- 10005 ---- Green -----1 ------- 1
Workbook2-(Tuesday’s DataOutput)
---- A ---- B ---- C ---- D
1 [Report Title]
2
3 [Date]
…
6 ------ ID -------- Colour---- Oth1 ---- Oth2
7 ------ N/A ------- N/A --------3 ------- 2
8 ------ 20001 ---- Blue ------1 -------- 0
9 ------ 20002 ---- Brown ----1 ------- 0
10 ---- 20004 ---- Green ---- 0------- 1
11 ---- 10003 ---- Blue ------ 0 ------- 1
12 ---- 20005 ---- Green ---- 1------- 1
Workbook-Duplicates
------- A ---- B ---- C ---- D
1 ---- ID --------- Colour---- Oth1 ---- Oth2
2 ---- 10003 ---- Blue ------ 0 -------- 0
3 ---- 10003 ---- Blue ------ 0 -------- 1
First of all, thanks for taking the time to look at my post!
I have multiple excel workbooks(all with just the one sheet) which is the daily output from another system. Multipleworkbooks sometimes have the same value in column A (essentially an ID number)but different values in the following columns of that row.
I'm looking to use a separateworkbook with a macro/query which finds duplicates in column A of all of theworkbooks within a given folder. All duplicates found, accompanied with all thedata in that row, will then be collated into a workbook.
The first 5 rows of each ofthe reports needs to be excluded from the duplicate-output (title/date ofreport, blank rows), with the headers being row7 (same headers on every output).However, row8 also needs to be excluded (cumulative totals of each column).
Example of data:
Workbook1-(Monday’s DataOutput)
---- A ---- B ---- C ---- D
1 [Report Title]
2
3 [Date]
…
6 ------ ID --------- Colour---- Oth1 ---- Oth2
7 ------ N/A ------- N/A --------3 -------- 2
8 ------ 10001 ---- Blue -------1 -------- 0
9 ------ 10002 ---- Brown -----1 ------- 0
10 ---- 10003 ---- Blue ------- 0 ------- 0
11 ---- 10004 ---- Green -----0 ------- 1
12 ---- 10005 ---- Green -----1 ------- 1
Workbook2-(Tuesday’s DataOutput)
---- A ---- B ---- C ---- D
1 [Report Title]
2
3 [Date]
…
6 ------ ID -------- Colour---- Oth1 ---- Oth2
7 ------ N/A ------- N/A --------3 ------- 2
8 ------ 20001 ---- Blue ------1 -------- 0
9 ------ 20002 ---- Brown ----1 ------- 0
10 ---- 20004 ---- Green ---- 0------- 1
11 ---- 10003 ---- Blue ------ 0 ------- 1
12 ---- 20005 ---- Green ---- 1------- 1
Workbook-Duplicates
------- A ---- B ---- C ---- D
1 ---- ID --------- Colour---- Oth1 ---- Oth2
2 ---- 10003 ---- Blue ------ 0 -------- 0
3 ---- 10003 ---- Blue ------ 0 -------- 1