Hi,
I've imported a 50000 lines CSV file with customer contact informations, but I would like to rearrange data.
My input table has this format :
| customerID | contacttype | value |
| 10001 | email | aaa@bbb.ccc |
| 10001 | phone | +123456789 |
| 10002 | email | ccc@ddd.eee |
| 10003 | email | ddd@eee.com |
| 10003 | phone | +456789123 |
| 10004 | phone | +789456123 |
| 10005 | email | rrr@ggg.ccc |
Some customers has email and phone contact, but some has only email, or only phone contact. If the customer has email and phone contact, I have 2 lines with the same customer ID
And I would like to convert my table to have unique customer IDs, like this :
| customerID | email | phone |
| 10001 | aaa@bbb.ccc | +123456789 |
| 10002 | ccc@ddd.eee | |
| 10003 | ddd@eee.com | +456789123 |
| 10004 | | +789456123 |
| 10005 | rrr@ggg.ccc | |
I've no idea how I can do this, I tried a lot of thing, with pivot tables, xlookup, but no success.
I don't even know if it's possible with simple formulas, or if I need to use VBA ?
If someone has any clue about how to do this, I would be very grateful :-)
Thanks a lot
Olivier