Sherry Fox
Poinciana, FL
Member
Members
Forum Posts: 148
Member Since:
December 4, 2021
December 4, 2021
Offline
I have been trying to figure this one out, and I am at a loss. There are over 14K rows of data, so doing this manually is NOT an option. I have attached a spreadsheet with 2 tabs, named "before" and "after".
- Before indicates how I receive the data. Users are listed in Column B. These users are listed multiple times for each role they have. The roles are listed in Column D. A user could have as many as 7 roles maximum.
- After shows how I need this data to display. There should only be one record for each user, and there would be Role columns 1-7 Columns D-H.
I know there must be a way to do this in VBA, but I just cannot figure it out. Any help is greatly appreciated.
Hans Hallebeek
the Netherlands
Member
Members
Trusted Members
Trusted Members
Forum Posts: 339
Member Since:
October 17, 2018
October 17, 2018
Offline
Hans Hallebeek
the Netherlands
Member
Members
Trusted Members
Trusted Members
Forum Posts: 339
Member Since:
October 17, 2018
October 17, 2018
Offline
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members
Moderators
Moderators
Forum Posts: 1030
Member Since:
January 31, 2022
January 31, 2022
Offline
Sherry Fox
Poinciana, FL
Member
Members
Forum Posts: 148
Member Since:
December 4, 2021
December 4, 2021
Offline
@Hans Hallebeek,
Thanks for the well detailed answer. I was able to easily apply the logic you defined to my live file. I added an IF Statement so it did not display the zeros.
@Riny van Eekelen,
I have downloaded your PQ workbook so I can also learn that way to get to the answer. I love PQ!!!!
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 919
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 339
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
santhosh kumar R
Lennard Wood
Miguel Costa
Nick Dowling
Silvia Ramos
Muhammad Abdullah Asad
Ifeanyi Aghanama
Ann Crossman
Kate Manders
James Carabott
Forum Stats:
Groups: 3
Forums: 25
Topics: 7069
Posts: 30981
Member Stats:
Guest Posters: 49
Members: 34461
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —