Excel row to column sorting

HETALK01

New Member
Joined
Aug 9, 2017
Messages
2
Hello,

I have data in the below format in excel with Name and Marks as Row Names :

Name Hetal
Marks 60
Name Jimy
Marks 40
Name Lilly
Marks 70

I want above data as below :

Name Marks
Hetal 60
Jimy 40
Lilly 70

Appreciate your help!

Thanks,
Hetal
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello,

I have data in the below format in excel with Name and Marks as Row Names :

Name Hetal
Marks 60
Name Jimy
Marks 40
Name Lilly
Marks 70

I want above data as below :

Name Marks
Hetal 60
Jimy 40
Lilly 70

Appreciate your help!

Thanks,
Hetal

assuming table 1 is in cells A2:B7, add a helper column using this formula:

C2=COUNTIF($A$2:A2,A2)

then in a separate sheet:

A2=OFFSET(Sheet1!$B$1,MATCH(ROW()-1,Sheet1!$C$2:$C$7,0),0)
B2=OFFSET(Sheet1!$B$1,MATCH(ROW()-1,Sheet1!$C$2:$C$7,0)+1,0)
 
Upvote 0
Hello,

Thanks for your response. It works.
But Instead of Marks column, if i have date column, having values like

Name Hetal
Date 29-10-2007
Name Puja
Date 09-08-2017

For the date values, it show some random numbers.

Can you help here please.

Thanks,
Hetal
 
Upvote 0
Hello,

Thanks for your response. It works.
But Instead of Marks column, if i have date column, having values like

Name Hetal
Date 29-10-2007
Name Puja
Date 09-08-2017

For the date values, it show some random numbers.

Can you help here please.

Thanks,
Hetal

just format that column as Date :)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

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