ABCDEFGH
1
Update 20191111 - changed share mode to comment only. Make a copy if you want to edit your own version.
2
3
Column
4
123456
5
Row1abcdef
6
2ghijkl
7
3mnopqr
8
4stuvwx
9
5yz!123
10
11
=INDEXMULTI($C$3:$H$7,{2,1,2,2,3,5},{2,5,6,6,3,3})
12
13
h
14
e
15
l
16
l
17
o
18
!
19
20
=transpose(INDEXMULTI($C$3:$H$7,{4,3,3,2,1,5},{5,3,6,6,4,3}))
21
world!
22
23
Try it here:
Go to Tools --> Script editor to see code
24
test
25