(I tried posting this in the Stack Exchange forums and it was closed as off-topic, so if this looks familiar to you from somewhere, that's why....)
I have csv reports exported from our company cellphone account detailing data usage for all of our cellphones on a per billing cycle basis. I have a different report for each cycle (trying to run the report for multiple cycles just sums the data usage into one column rather than separate columns for each cycle). I need to merge these into a master report (table) such that no unique rows are lost (from cellphones being added or removed from the account) and (ideally) the data usage column from each report becomes its own column in the master table (if worse comes to worse, I can do the columns bit manually as I already have a formula that works in these. It's the rows that are fully manual for me right now).
Example:
Report 1
Report 2
Master Report (what I want the merge to look like from the given examples above)
Ideally, I'd like to be able to do this without macros so I can just leave this as a simple xlsx file. All of the reports are saved to the same workbook on different worksheets as named tables. I'd like the master table to be in the same workbook on its own worksheet and be able to either automatically or easily manually adapt to adding a new (or removing an existing) worksheet with a new named table so I can append it with new (or remove old) reports as time goes on.
I've done some Google searching coming up with results about dynamic & pivot tables (none of these seem to be doing what I want, and pivot tables especially are not formatting anywhere close to what I'd want) and some results about Power Query (this seemed the closest, but when I try this to merge and use the "Full Outer (all rows from both)" option, any rows in table2 that aren't in table1 just get "null" written across the value fields for the entire row).
I'm hoping some better Excel gurus out there can help me with this. I am using the Office 365 version of Excel.
In my previous posting of this question on the Stack Exchange boards, before it was closed, I received a couple of comments:
I have csv reports exported from our company cellphone account detailing data usage for all of our cellphones on a per billing cycle basis. I have a different report for each cycle (trying to run the report for multiple cycles just sums the data usage into one column rather than separate columns for each cycle). I need to merge these into a master report (table) such that no unique rows are lost (from cellphones being added or removed from the account) and (ideally) the data usage column from each report becomes its own column in the master table (if worse comes to worse, I can do the columns bit manually as I already have a formula that works in these. It's the rows that are fully manual for me right now).
Example:
Report 1
Cell number | Name | Device Model | Billing Cycle Date | Data Usage |
---|---|---|---|---|
number_1 | Name_A | xxx | Date_1 | xxx |
number_2 | Name_B | xxx | Date_1 | xxx |
number_4 | Name_C | xxx | Date_1 | xxx |
Report 2
Cell number | Name | Device Model | Billing Cycle Date | Data Usage |
---|---|---|---|---|
number_1 | Name_A | xxx | Date_2 | xxx |
number_2 | Name_B | xxx | Date_2 | xxx |
number_3 | Name_D | xxx | Date_2 | xxx |
Master Report (what I want the merge to look like from the given examples above)
Cell number | Name | Device Model | Data Usage Date_1 | Data Usage Date_2 |
---|---|---|---|---|
number_1 | Name_A | xxx | xxx | xxx |
number_2 | Name_B | xxx | xxx | xxx |
number_3 | Name_C | xxx | xxx | |
number_4 | Name_D | xxx | xxx |
Ideally, I'd like to be able to do this without macros so I can just leave this as a simple xlsx file. All of the reports are saved to the same workbook on different worksheets as named tables. I'd like the master table to be in the same workbook on its own worksheet and be able to either automatically or easily manually adapt to adding a new (or removing an existing) worksheet with a new named table so I can append it with new (or remove old) reports as time goes on.
I've done some Google searching coming up with results about dynamic & pivot tables (none of these seem to be doing what I want, and pivot tables especially are not formatting anywhere close to what I'd want) and some results about Power Query (this seemed the closest, but when I try this to merge and use the "Full Outer (all rows from both)" option, any rows in table2 that aren't in table1 just get "null" written across the value fields for the entire row).
I'm hoping some better Excel gurus out there can help me with this. I am using the Office 365 version of Excel.
In my previous posting of this question on the Stack Exchange boards, before it was closed, I received a couple of comments:
- One said this was doable via Pivot Tables. I'm not proficient with Pivot Tables. In my attempts to use a Pivot Table for this, I could not get it to actually put the column headers as the actual column headers. I could only put values from a column as the column headers or put everything as a tree structure in the first column. If someone knows more on this, please let me know.
- The other comment told me that Power Query was the right tool, but that I wanted to append, not merge. However, when I tried append, it created duplicate rows of the ones that were common between the tables (so in my example master report above I would've ended up with 6 rows instead of the intended 4). Again, if someone knows more on this, please let me know.