Transpose, Table, or Formulas

LearnVBA83

Board Regular
Joined
Dec 1, 2016
Messages
122
Office Version
  1. 365
Platform
  1. Windows
Hi team excel,

I have a large excel spreadsheet with GL Accounts and the ID of people that post to those accounts. I'm building like an account mapping legend and was wondering if there is an easy way to turn the data in columns A & B to the format of columns F - K ? Maybe using a table, pivot, or transpose?

Line Items (1).xlsx
ABCDEFGHIJK
1G/L AccountParked ByG/L AccountName 1Name 2Name 3Name4Name 5
21001002C3962301001002C396230C393743SYSTEMDSWHITE
31001002C3937431001004C754095SYSTEMC210747C027040C577891
41001002SYSTEM1001502C396230C393743SYSTEM
51001002DSWHITE1001503C396230SYSTEM
61001004C7540951001504C396230SYSTEM
71001004SYSTEM1001505C396230SYSTEM
81001004C2107471001507C396230C393743SYSTEM
91001004C0270401001508C396230SYSTEM
101001004C5778911001510DPETRUCCIC393743C396230C577891SYSTEM
111001502C396230
121001502C393743
131001502SYSTEM
141001503C396230
151001503SYSTEM
161001504C396230
171001504SYSTEM
181001505C396230
191001505SYSTEM
201001507C396230
211001507C393743
221001507SYSTEM
231001508C396230
241001508SYSTEM
251001510DPETRUCCI
261001510C393743
271001510C396230
281001510C577891
291001510SYSTEM
30
Sheet3
 
Once again what error?
Saying "I get an error" doesn't really help us.
I just pasted the formula in F2 and then highlighted F2:K10 and then hit control - alt - enter and it gave me this.
 

Attachments

  • 1739983527775.png
    1739983527775.png
    47.6 KB · Views: 5
Upvote 0
With 365 you never need to use Ctrl Shift Enter.
Just paste the formula into F2 only.
I must not have 365 or maybe my company hasn't fully updated it because the "period" dot operator KWEAVER mentioned above doesn't work for me either. When i paste your formula in F2 I get the below return.

1739983983442.png
 
Upvote 0
Ok, you probably don't have the Groupby function yet. What error did you get with kweaver's formula?
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGHIJK
1G/L AccountParked ByG/L AccountName 1Name 2Name 3Name4Name 5
21001002C3962301001002C396230C393743SYSTEMDSWHITE
31001002C3937431001004C754095SYSTEMC210747C027040C577891
41001002SYSTEM1001502C396230C393743SYSTEM
51001002DSWHITE1001503C396230SYSTEM
61001004C7540951001504C396230SYSTEM
71001004SYSTEM1001505C396230SYSTEM
81001004C2107471001507C396230C393743SYSTEM
91001004C0270401001508C396230SYSTEM
101001004C5778911001510DPETRUCCIC393743C396230C577891SYSTEM
111001502C396230
121001502C393743
131001502SYSTEM
141001503C396230
151001503SYSTEM
161001504C396230
171001504SYSTEM
181001505C396230
191001505SYSTEM
201001507C396230
211001507C393743
221001507SYSTEM
231001508C396230
241001508SYSTEM
251001510DPETRUCCI
261001510C393743
271001510C396230
281001510C577891
291001510SYSTEM
Data
Cell Formulas
RangeFormula
F2:K10F2=LET(u,UNIQUE(FILTER(A2:A100,A2:A100<>"")),m,MAX(COUNTIFS(A:A,u)),DROP(REDUCE("",u,LAMBDA(x,y,VSTACK(x,HSTACK(y,EXPAND(TOROW(FILTER(B2:B100,A2:A100=y)),,m,""))))),1))
Dynamic array formulas.
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDEFGHIJK
1G/L AccountParked ByG/L AccountName 1Name 2Name 3Name4Name 5
21001002C3962301001002C396230C393743SYSTEMDSWHITE
31001002C3937431001004C754095SYSTEMC210747C027040C577891
41001002SYSTEM1001502C396230C393743SYSTEM
51001002DSWHITE1001503C396230SYSTEM
61001004C7540951001504C396230SYSTEM
71001004SYSTEM1001505C396230SYSTEM
81001004C2107471001507C396230C393743SYSTEM
91001004C0270401001508C396230SYSTEM
101001004C5778911001510DPETRUCCIC393743C396230C577891SYSTEM
111001502C396230
121001502C393743
131001502SYSTEM
141001503C396230
151001503SYSTEM
161001504C396230
171001504SYSTEM
181001505C396230
191001505SYSTEM
201001507C396230
211001507C393743
221001507SYSTEM
231001508C396230
241001508SYSTEM
251001510DPETRUCCI
261001510C393743
271001510C396230
281001510C577891
291001510SYSTEM
Data
Cell Formulas
RangeFormula
F2:K10F2=LET(u,UNIQUE(FILTER(A2:A100,A2:A100<>"")),m,MAX(COUNTIFS(A:A,u)),DROP(REDUCE("",u,LAMBDA(x,y,VSTACK(x,HSTACK(y,EXPAND(TOROW(FILTER(B2:B100,A2:A100=y)),,m,""))))),1))
Dynamic array formulas.
Looks like you got it! WOW amazing.
 
Upvote 0

Forum statistics

Threads
1,226,834
Messages
6,193,216
Members
453,779
Latest member
C_Rules

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top