Forum Discussion
Split Column with multiple values in same column
Hi
I have a file with multiple columns, where each column can be one or more companies. Something like the following format:
Date | Company1 | Company2
01-02-2019 | 1000 | 2000
01-02-2019 | 1000 | 2000
01-02-2019 | 1000 | 2000
01-02-2019 | 1000 | 2000
...... (400 rows about)
Date | Company 1 | Company 4
01-02-2018 | 1000 | 2000
01-02-2018 | 1000 | 2000
01-02-2018 | 1000 | 2000
01-02-2018 | 1000 | 2000
I need to unpivot this, to something like this:
Date | Company | Amount
01-02-2018 | Company1 | 1000
01-02-2018 | Company2 | 2000
01-02-2018 | Company3 | 2000
01-02-2018 | Company4 | 2000
.....
How can I achieve this? Is there any way?
BTW, This is an example of the file:
Thanks!
6 Replies
- AnonymousNot applicable
Anonymous
Right click on the date column and select Unpivot Other Columns.
---
Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."- AnonymousNot applicable
Hi
Didn't work because doing that I've lost the relation between the companies and the amounts.
😞
Thanks
- AnonymousNot applicable
I guess I'm unclear what you mean by the "relation between the companies and the amounts"
You started with something like this, correct?:
And you should have ended up with something like this:
What do you need that this does not have?