Power query question - dates into columns

Mendy32

New Member
Joined
Dec 23, 2019
Messages
36
Office Version
  1. 2019
Platform
  1. Windows
Hi,

I need help.!! how can I combine the names to one row but have all the dates in columns with the Level underneath the Dates...Can this be done power query?

I need to look like this for example

I.dNameDOBRAESEXADMIT3.9.2020 3.16.20203.25.2020etc...
6858Wonder Woman9/15/2000PINKMale2/16/2020H0H0H0H0
7848Superman8/31/1976WhiteMale6/4/2020H0H0H0H0


The list below is what I need combined...

I.d #NameDOBRAESEXADMITLevelDates
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H03.9.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H03.16.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H03.25.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H04.1.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H04.8.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H04.15.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H04.22.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H04.29.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H05.6.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H05.20.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H05.27.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H06.3.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H06.10.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H06.17.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H06.24.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H07.1.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H07.8.2020
6858​
Wonder Woman
9/15/2000​
PINKMale
2/16/2020​
H05.13.2020
7848​
Superman
8/31/1976​
WhiteMale
3/6/2020​
H03.16.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H06.10.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H06.17.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H06.24.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H07.1.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H07.8.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H07.15.2020
7848​
Superman
8/31/1976​
WhiteMale
6/4/2020​
H07.22.2020
1587​
ROQUE
11/8/1993​
PINKFemale
2/25/2020​
H03.9.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H05.20.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H05.27.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H06.3.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H06.10.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H06.17.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H06.24.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H07.1.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H07.8.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H07.15.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H07.22.2020
6584​
BATMAN
3/20/1992​
ORANGEMale
10/4/2019​
H05.13.2020
749​
Aquaman
8/14/1994​
BrownMale
3/2/2020​
H03.9.2020
749​
Aquaman
8/14/1994​
BrownMale
3/2/2020​
H03.16.2020
749​
Aquaman
8/14/1994​
BrownMale
3/2/2020​
H03.25.2020
749​
Aquaman
8/14/1994​
BrownMale
3/2/2020​
H04.1.2020
749​
Aquaman
8/14/1994​
BrownMale
3/2/2020​
H04.8.2020
749​
Aquaman
8/14/1994​
BrownMale
3/2/2020​
H04.15.2020
83870​
FLASH
6/24/1992​
BrownMale
2/24/2020​
H03.9.2020
83870​
FLASH
6/24/1992​
BrownMale
2/24/2020​
H03.16.2020
83870​
FLASH
6/24/1992​
BrownMale
2/24/2020​
H07.8.2020
83870​
FLASH
6/24/1992​
BrownMale
2/24/2020​
H07.15.2020
83870​
FLASH
6/24/1992​
BrownMale
2/24/2020​
H07.22.2020
955882​
THOR
9/13/1985​
BrownMale
6/17/2020​
H06.24.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H05.20.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H05.27.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H06.3.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H06.10.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H06.17.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H06.24.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H07.1.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H07.8.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H07.15.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H07.22.2020
787667​
IRONMAN
1/2/1972​
WhiteMale
10/31/2019​
H05.13.2020
5917854​
PRINCE
4/4/1988​
WhiteMale
4/19/2020​
H14.22.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H14.15.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H14.22.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H14.29.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H15.6.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H15.20.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H15.27.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H16.3.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H16.10.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H16.17.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H16.24.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H17.1.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H17.8.2020
57421​
MICKEY MOUSE
2/5/1970​
PINKFemale
9/10/2019​
H15.13.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H03.16.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H03.25.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H04.1.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H04.8.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H04.15.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H04.22.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H04.29.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H05.6.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H05.20.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H05.27.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H06.3.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H06.10.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H06.17.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H06.24.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H07.1.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H07.8.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H07.15.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H07.22.2020
5896907​
LASSO
7/9/1993​
ORANGEMale
3/9/2020​
H05.13.2020
719​
CROWN
3/23/1993​
ORANGEMale
7/17/2020​
H17.22.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H13.25.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H14.1.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H14.8.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H14.15.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H14.22.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H14.29.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H15.6.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H15.20.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H15.27.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H16.3.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H16.10.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H16.17.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H16.24.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H17.1.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H17.8.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H17.15.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H17.22.2020
5731998​
RED BOOTS
9/13/1994​
PINKMale
8/30/2019​
H15.13.2020
 
my goal was track if the levels changed per week. I know the first few months a lot of H levels were missing but May, June and July should be more complete to see a pattern..

I.d #NameDOBRAESEXADMIT3.9.20203.16.20203.25.20205.27.2020
6858Wonder Woman9/15/2000PINKMale2/16/2020H0H0H0H1POS
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
For example...this person level has not changed...
I.d #NAMEDOBRAESEXADMITLevelDates
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H05.20.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H05.27.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H06.3.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H06.10.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H06.17.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H06.24.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H07.1.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H07.8.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H07.15.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H07.22.2020
667​
Ken and Barbie
1/2/1972​
WhiteMale
10/31/2019​
H05.13.2020

This person Level changed in April from H2 to H0

I.d #NAMEDOBRAESEXADMITLevelDates
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H23.9.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H23.16.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H23.25.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H24.1.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H24.8.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H04.15.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H04.22.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H04.29.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H05.6.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H05.20.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H05.27.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H06.3.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H06.10.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H06.17.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H06.24.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H07.1.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H07.8.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H07.15.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H07.22.2020
589​
Chucky
2/17/1997​
Black or African AmericanMale
3/2/2020​
H05.13.2020
 
Upvote 0
i'd like to see original structure with generic data
in post#22 it looks like two different tables
maybe create example of your source data and expected result then share excel file via googledrive, dropbox, onedrive or any similar and post link here
 
Upvote 0
my data looks like post 22 but I want it to look like post 21...I'm look for the dates to become headers....

I hope I did it correctly..


I.d #NameDOBRAESEXADMIT3.9.20203.16.20203.25.20204.1.2020
6858Wonder Woman9/15/2000PINKMale2/16/2020H0H0H0H1POS

Levels.xlsx
 
Upvote 0
like this?
I.d #NAMEDOBRAESEXADMIT5.20.20203.16.20204.15.20204.29.20207.1.20204.1.2020
278ACEVEDO, CESAR24/11/1984HispanicMale03/12/2019H1POS
607ACEVEDO, MARK ANTHONY24/06/1994HispanicMale09/02/2020H1
5824241ACOSTA, ADRIANA15/06/1996HispanicFemale16/12/2019H0
5896584ACOSTA, ADRIAN30/01/2002HispanicMale11/04/2020H0
5920675ACOSTA, ADRIAN18/04/1996HispanicMale25/04/2020H1
5960673ACOSTA, ADRIAN18/04/1996HispanicMale25/06/2020H0
 
Upvote 0
or

I.d #NAMEDOBRAESEXADMIT5.20.20205.27.20206.3.20206.10.20206.17.20206.24.20207.1.20207.8.20207.15.20207.22.20205.13.20203.16.20203.25.20204.1.20204.8.20204.15.20204.22.20204.29.20205.6.2020
278ACEVEDO, CESAR24/11/1984HispanicMale03/12/2019H1POSH1POSH1POSH1POSH1POSH1POSH1POSH1POSH1POSH1H1POS
607ACEVEDO, MARK ANTHONY24/06/1994HispanicMale09/02/2020H1H1H1H1H1H1H1H1H1H1H1H1H1H1H1H1H1
5824241ACOSTA, ADRIANA15/06/1996HispanicFemale16/12/2019H0H0H0
5896584ACOSTA, ADRIAN30/01/2002HispanicMale11/04/2020H0H0H0H0H0H0H0H0H0H0H0H0H0H0H0
5920675ACOSTA, ADRIAN18/04/1996HispanicMale25/04/2020H1
5960673ACOSTA, ADRIAN18/04/1996HispanicMale25/06/2020H0H0H0H0

 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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