How to transpose column A based on values in Column B in excel ?

Maged Kamal

New Member
Joined
Oct 22, 2014
Messages
3
i need equation to transpose list in column A to be from D1 to N1 based on its values in Column B
NameAmountFCEDKBGIAHJ
A150
B200
C600
D300
E400
F800
G200
H100
I200
J100
K300

<colgroup><col width="72" span="2" style="width:54pt"> <col width="72" span="12" style="width:54pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Highlight D1:O2
formula in D1: =TRANSPOSE(A1:B12)
Hit Ctrl+Shift+Enter

Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
O​
1​
NameAmountNameABCDEFGHIJK
2​
A
150
Amount
150
200
600
300
400
800
200
100
200
100
300
3​
B
200
4​
C
600
5​
D
300
6​
E
400
7​
F
800
8​
G
200
9​
H
100
10​
I
200
11​
J
100
12​
K
300
 
Upvote 0
I'm sorry I didn't read your question accurately. My mistake. I will look tonight cause I'm at work right now.
 
Upvote 0
Sorry for the delay. Work was calling and I forgot about your question.

In D2: =LARGE($B$2:$B$12;COLUMN(A1))
Copy from left to right

In D1: =INDEX($A$2:$A$12;SMALL(IF($B$2:$B$12=D2;ROW($A$2:$A$12)-ROW($A$2)+1);COUNTIF($D$2:D2;D2)))
Entered with Ctrl+Shift+Enter. NOT just Enter.
Copy from left to right


Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
1​
NameAmount
F​
C​
E​
D​
K​
B​
G​
I​
A​
H​
J​
2​
A
150​
800​
600​
400​
300​
300​
200​
200​
200​
150​
100​
100​
3​
B
200​
4​
C
600​
5​
D
300​
6​
E
400​
7​
F
800​
8​
G
200​
9​
H
100​
10​
I
200​
11​
J
100​
12​
K
300​
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,391
Messages
6,136,323
Members
450,005
Latest member
BigPaws

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