Transposing data that is in a table, to columns

nathangwynmorris

New Member
Joined
Feb 23, 2022
Messages
11
Office Version
  1. 365
Platform
  1. MacOS
Hi All,

This has been annoying me for far too long now, I really need some help. If someone has a solution for excel and google sheets, I would really appreciate it.

In short, I have a list of the country, jobcode and the level (every eventuality) and then what I expect in column n is for it to concatenate the country, job code and level and then look at the table on the left and pull the value. I think it needs to be index match but I really cannot get my head around it.

Probably very simple to some, but yeah - I cannot do it. Thanks in advance as always!
 

Attachments

  • 1710766789607.png
    1710766789607.png
    232.5 KB · Views: 18

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1012345678
2A812309727618311134238235A0 
3B480275147690723227347156A1812
4C604699618216926748258811432A2309
5D213178291425939379898232867A3727
6E737990918744523425695876105A4618
7F988633184677503551541486293A5311
8G452377303126394775699127861A6134
9H457962805560907487187970903A7238
10957333673287189102609A8235
11B0480
12B1275
13B2147
14B3690
15B4 
16B5723
17B6227
18B7347
19B8156
20C0604
21C1699
22C2618
23C3216
Sheet6
Cell Formulas
RangeFormula
L2:L23L2=INDEX($A$2:$A$9,CEILING(ROWS(L$2:L2)/9,1))
M2:M23M2=INDEX($B$1:$J$1,,MOD(ROWS(M$2:M2)-1,9)+1)
N2:N23N2=IFERROR(1/(1/INDEX($B$2:$J$9,CEILING(ROWS(N$2:N2)/9,1),MOD(ROWS(N$2:N2)-1,9)+1)),"")
 
Upvote 0
@Fluff! I added an incorrect screenshot - I have one more condition to factor in; country! Sorry if this takes up more of your time!
 

Attachments

  • Screenshot 2024-03-18 at 13.35.39.png
    Screenshot 2024-03-18 at 13.35.39.png
    79.2 KB · Views: 29
Upvote 0
That is completely different as you now have two different tables & not one.
 
Upvote 0
Yeah, sorry about that. If it isn't possible then I can just manually change the range for each one and get the results in a different column. But what you did originally did work! And thank you for automating the ABC 0-8 too! That also blew my mind! 🙏
 
Upvote 0
Thanks for that.
Clear columns M:P & put the formula in M2 only
Fluff.xlsm
ABCDEFGHIJKLMNOP
1012345678
2WA812309727618311134238235WA00
3WB480275147690723227347156WA1812
4WC604699618216926748258811432WA2309
5WD213178291425939379898232867WA3727
6WE737990918744523425695876105WA4618
7WF988633184677503551541486293WA5311
8WG452377303126394775699127861WA6134
9WH457962805560907487187970903WA7238
10WA8235
11012345678EK00
12EK812309727618311134238235EK1812
13EL480275147690723227347156EK2309
14EM604699618216926748258811432EK3727
15EN213178291425939379898232867EK4618
16EO737990918744523425695876105EK5311
17EP988633184677503551541486293EK6134
18EQ452377303126394775699127861EK7238
19ER123456789EK8235
20WB0480
21WB1275
22WB2147
23WB3690
24WB40
25WB5723
26WB6227
27WB7347
28WB8156
29EL0480
30EL1275
Sheet6
Cell Formulas
RangeFormula
M2:P145M2=LET(d,CHOOSEROWS(VSTACK(A2:K9,A12:K19),1,9,2,10,3,11,4,12,5,13,6,14,7,15,8,16),HSTACK(TOCOL(IF(SEQUENCE(,9),INDEX(d,,1))),TOCOL(IF(SEQUENCE(,9),INDEX(d,,2))),TOCOL(IF(SEQUENCE(16),C1:K1)),TOCOL(DROP(d,,2))))
Dynamic array formulas.
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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