Sherry Fox
Poinciana, FL
Member
Members
Forum Posts: 150
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: 377
Member Since:
October 17, 2018
October 17, 2018
Offline
Hans Hallebeek
the Netherlands
Member
Members
Trusted Members
Trusted Members
Forum Posts: 377
Member Since:
October 17, 2018
October 17, 2018
Offline
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members
Moderators
Moderators
Forum Posts: 1109
Member Since:
January 31, 2022
January 31, 2022
Offline
Sherry Fox
Poinciana, FL
Member
Members
Forum Posts: 150
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: 1944
SunnyKow: 1432
Anders Sehlstedt: 956
Purfleet: 415
Hans Hallebeek: 377
Frans Visser: 351
David_Ng: 318
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Techia Braveboy
Charles Buchanan
Tiago Braga
Rehan Baig
Fred HORVATH
Silke Schmidt
Stuart Barr
Amelia Nolte
David Wier
T P Collins
Forum Stats:
Groups: 3
Forums: 25
Topics: 7154
Posts: 31382
Member Stats:
Guest Posters: 50
Members: 34655
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —