Hello, I often get a workbook with many sheets of data with multiple columns on the left, dates across the top and numbers at the intersection of each row/column. I then need to put it into a consolidated 'vertical' table in order to create my reports. Most of the time I'm using the Copy/Paste, fill down, repeat, method to create the table, but I know there has to be a better way...just don't know how to get there. Once I get the table structure created, I can usually use INDEX, MATCH to insert the data piece (numbers) into the table.
The Column B (Type) usually is 3-5 rows and the Row 5 'YYYY-MM' can be any number of months (1-12).
Sample data:
What I need to end up with is a consolidated table like below...
What is a more efficient way of creating the consolidated table, other than, Copy/Paste, fill down, repeat?
TIA,
Don
The Column B (Type) usually is 3-5 rows and the Row 5 'YYYY-MM' can be any number of months (1-12).
Sample data:
Book1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
5 | Sheetname | Type | 2021-06 | 2021-07 | 2021-08 | 2021-09 | 2021-10 | 2021-11 | 2021-12 | ||
6 | Dept1 | Billable | 1234 | 1135 | 1236 | 1126 | 1237 | 1056 | 1003 | ||
7 | Capital | 999 | 895 | 1001 | 935 | 997 | 856 | 875 | |||
8 | Expense | 825 | 815 | 899 | 865 | 856 | 888 | 879 | |||
9 | O/T/M | 201 | 198 | 225 | 235 | 205 | 188 | 185 | |||
10 | P/H | 250 | 235 | 245 | 256 | 245 | 300 | 305 | |||
11 | |||||||||||
12 | Sheetname | Type | 2021-06 | 2021-07 | 2021-08 | 2021-09 | 2021-10 | 2021-11 | 2021-12 | ||
13 | Dept2 | Billable | 1234 | 1135 | 1236 | 1126 | 1237 | 1056 | 1003 | ||
14 | Capital | 999 | 895 | 1001 | 935 | 997 | 856 | 875 | |||
15 | Expense | 825 | 815 | 899 | 865 | 856 | 888 | 879 | |||
16 | O/T/M | 201 | 198 | 225 | 235 | 205 | 188 | 185 | |||
17 | P/H | 250 | 235 | 245 | 256 | 245 | 300 | 305 | |||
Sheet1 |
What I need to end up with is a consolidated table like below...
Book1 | |||||||
---|---|---|---|---|---|---|---|
K | L | M | N | O | |||
3 | Consolidated Table | ||||||
4 | Dept | Text YYYY-MM | Date | Type | Hours | ||
5 | Dept1 | 2021-06 | 6/1/2021 | Billable | 1234 | ||
6 | Dept1 | 2021-06 | 6/1/2021 | Capital | 999 | ||
7 | Dept1 | 2021-06 | 6/1/2021 | Expense | 825 | ||
8 | Dept1 | 2021-06 | 6/1/2021 | O/T/M | 201 | ||
9 | Dept1 | 2021-06 | 6/1/2021 | P/H | 250 | ||
10 | Dept1 | 2021-07 | 7/1/2021 | Billable | 1135 | ||
11 | Dept1 | 2021-07 | 7/1/2021 | Capital | 895 | ||
12 | Dept1 | 2021-07 | 7/1/2021 | Expense | 815 | ||
13 | Dept1 | 2021-07 | 7/1/2021 | O/T/M | 198 | ||
14 | Dept1 | 2021-07 | 7/1/2021 | P/H | 235 | ||
15 | etc…. | etc…. | etc…. | etc…. | etc…. | ||
16 | Dept2 | ||||||
17 | etc…. | etc…. | etc…. | etc…. | etc…. | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
O5:O14 | O5 | =INDEX($C$6:$I$10,MATCH($N5,$B$6:$B$10,0),MATCH($L5,$C$5:$I$5,0)) |
What is a more efficient way of creating the consolidated table, other than, Copy/Paste, fill down, repeat?
TIA,
Don