Reorganising data

Shrewrob

New Member
Joined
Sep 19, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I'd be grateful for your help with this one.

A data sample is below:

NameCourse 1Course 2Course 3Course 4Course 5Course 6
Andrew05-05-202205-05-202205-05-202205-05-202208-03-202408-03-2024
Bev05-05-202205-05-202205-05-202205-05-202205-05-202205-05-2022
Charlotte06-04-202306-04-202306-04-202306-04-202330-03-202430-03-2024
Elena05-05-202215-03-202405-05-202205-05-202205-05-202205-05-2022
Emma07-07-202207-07-202207-07-202207-07-202229-03-202429-03-2024
Jill05-05-202205-05-202227-03-202405-05-202227-03-202427-03-2024

I want create a table with 3 columns like this:

NameCourse TitleDate
AndrewCourse 105-05-2022
AndrewCourse 205-05-2022
AndrewCourse 305-05-2022
AndrewCourse 405-05-2022
AndrewCourse 508-03-2024
AndrewCourse 608-03-2024
BevCourse 105-05-2022
BevCourse 205-05-2022
BevCourse 305-05-2022
BevCourse 405-05-2022
BevCourse 505-05-2022
BevCourse 605-05-2022

Whats the best way to do this please.

Many thanks. Rob
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You can do this with Power Query with a few clicks. It can also be done with a fairly complicated formula. I am not an expert in Power Query. There is a Mr Excel forum called "Power Tools" that you can get this assistance in. You can also review some youtube videos on "Un Pivoting" Data with Power Query.

look at this youtube video:
 
Upvote 1
Solution
You can do this with Power Query with a few clicks. It can also be done with a fairly complicated formula. I am not an expert in Power Query. There is a Mr Excel forum called "Power Tools" that you can get this assistance in. You can also review some youtube videos on "Un Pivoting" Data with Power Query.

look at this youtube video:
Brilliant! thanks for your help
 
Upvote 0
A formula solution follows. Someone may provide a solution with one formula or improve this quick thought.

ToCol.xlsm
ABCDEFG
1
2NameCourse 1Course 2Course 3Course 4Course 5Course 6
3Andrew05-05-2205-05-2205-05-2205-05-2208-03-2408-03-24
4Bev05-05-2205-05-2205-05-2205-05-2205-05-2205-05-22
5Charlotte06-04-2306-04-2306-04-2306-04-2330-03-2430-03-24
6Elena05-05-2215-03-2405-05-2205-05-2205-05-2205-05-22
7Emma07-07-2207-07-2207-07-2207-07-2229-03-2429-03-24
8Jill05-05-2205-05-2227-03-2405-05-2227-03-2427-03-24
9
10
11
12NameDateCourse
13Andrew05-05-22Course 1
14Andrew05-05-22Course 2
15Andrew05-05-22Course 3
16Andrew05-05-22Course 4
17Andrew08-03-24Course 5
18Andrew08-03-24Course 6
19Bev05-05-22Course 1
20Bev05-05-22Course 2
21Bev05-05-22Course 3
22Bev05-05-22Course 4
23Bev05-05-22Course 5
24Bev05-05-22Course 6
25Charlotte06-04-23Course 1
26Charlotte06-04-23Course 2
27Charlotte06-04-23Course 3
28Charlotte06-04-23Course 4
29Charlotte30-03-24Course 5
30Charlotte30-03-24Course 6
31Elena05-05-22Course 1
32Elena15-03-24Course 2
33Elena05-05-22Course 3
34Elena05-05-22Course 4
35Elena05-05-22Course 5
36Elena05-05-22Course 6
37Emma07-07-22Course 1
38Emma07-07-22Course 2
39Emma07-07-22Course 3
40Emma07-07-22Course 4
41Emma29-03-24Course 5
42Emma29-03-24Course 6
43Jill05-05-22Course 1
44Jill05-05-22Course 2
45Jill27-03-24Course 3
46Jill05-05-22Course 4
47Jill27-03-24Course 5
48Jill27-03-24Course 6
49
2c
Cell Formulas
RangeFormula
A13:B48A13=LET(s,SEQUENCE(,6),HSTACK(TOCOL(IF(s,A3:A8)),TOCOL(B3:G8)))
C13:C48C13=LET(c,TOCOL(B2:G2),VSTACK(c,c,c,c,c,c))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,133
Members
449,098
Latest member
Doanvanhieu

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