
Originally Posted by
xiao85yu
So I actually figured out what i needed to do, but my method is a bit "dumb" so I'd like to understand what your macro did Richard.
That was my macro, and when I ran your macro, it appended the two columns together with a " " and also the count was a bit off. Here's my 3 columns with data:
|Team| |Role Name| |Counts|
FI General Ledger Master Data Approver 3
FI General Ledger Master Data Maintainer 4
FI General Ledger Master Data Reviewer 3
So my macro gives me the two column output:
FI General Ledger Master Data Approver
FI General Ledger Master Data Approver
FI General Ledger Master Data Approver
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Reviewer
FI General Ledger Master Data Reviewer
FI General Ledger Master Data Reviewer
And yours gives:
Team Role Name
Team Role Name
Team Role Name
FI General Ledger Master Data Approver
FI General Ledger Master Data Approver
FI General Ledger Master Data Approver
FI General Ledger Master Data Approver
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Maintainer
FI General Ledger Master Data Reviewer
FI General Ledger Master Data Reviewer
FI General Ledger Master Data Reviewer
FI General Ledger Master Data Reviewer
So the count gets flipfloped and there's extra Team Role Name, I just didn't understand how the indexing works, if i did i could probably just tweak yours to make it look "smarter" :-p
Hi,
I had assumed you wanted the first two columns concatenated together, hence the single column output. Also I had not got any Field labels in my test data. Since these exist in row 1, the macro needs to start with row 2 data. Subsequently I also realised that my code would only run if the Active sheets was the "Count" sheet. There's a modification below which allows it to be run from any sheet, plus corrections for your other points.
Rgds
Bookmarks