Help needed with splitting data into separate columns

Status
Not open for further replies.

yvette78

Banned User
Joined
Jan 19, 2022
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
HI everyone - i am hoping someone can help me with this excel function.

I have attached two images.....one of the data I need to split and another of the dashboard/table where i need the data to go.

I will be receiving an excel document from a client with raw data containing many columns but what i need help with relates to the column named "PLAYERS" SO I have copied this column into a separate document to make things easier to follow. The data will be in the same format as per the attached document on sheet named RAW DATA.

The players column shows 12 players and the RAW DATA column contains each of the players NAME, DATE OF BIRTH and MOBILE NUMBER. I need to be able to extract each of these (NAME, DATA OF BIRTH and MOBILE NUMBER) into separate columns as per SHEET 2. So Player 1 on the dashboard/table, would be JOE BLOGGS (NAME COLUMN), 28/11/2002 (DATE OF BIRTH COLUMN), 04444444 (MOBILE NUMBER COLUMN).

Is there anyone that can help me? Thank you in advance.
 

Attachments

  • dashboard.PNG
    dashboard.PNG
    22 KB · Views: 23
  • data to split.PNG
    data to split.PNG
    14.5 KB · Views: 24

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I would be inclined to use Power Query but if you can rely on the player numbers being in the Raw Data, you could try something like this.

20220120 Lookup or PQ.xlsx
ABCDEFG
8PLAYER NONAMEDATE OF BIRTHMOBILE NO.Player
91joe bloggs28/11/20020444444441:Name:joe bloggs
102joe bloggs228/11/20990999999991:Date of Birth:28/11/2002
1131:Mobile:044444444
1242:Name:joe bloggs2
132:Date of Birth:28/11/2099
142:Mobile:099999999
15
16
Sheet1
Cell Formulas
RangeFormula
B9:B10B9=MID(XLOOKUP($A9&":NAME:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2),FIND("e:",XLOOKUP($A9&":NAME:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2))+2,255)
C9:C10C9=MID(XLOOKUP($A9&":Date of Birth:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2),FIND("h:",XLOOKUP($A9&":Date of Birth:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2))+2,255)
D9:D10D9=MID(XLOOKUP($A9&":Mobile:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2),FIND("e:",XLOOKUP($A9&":Mobile:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2))+2,255)
 
Upvote 0
I would be inclined to use Power Query but if you can rely on the player numbers being in the Raw Data, you could try something like this.

20220120 Lookup or PQ.xlsx
ABCDEFG
8PLAYER NONAMEDATE OF BIRTHMOBILE NO.Player
91joe bloggs28/11/20020444444441:Name:joe bloggs
102joe bloggs228/11/20990999999991:Date of Birth:28/11/2002
1131:Mobile:044444444
1242:Name:joe bloggs2
132:Date of Birth:28/11/2099
142:Mobile:099999999
15
16
Sheet1
Cell Formulas
RangeFormula
B9:B10B9=MID(XLOOKUP($A9&":NAME:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2),FIND("e:",XLOOKUP($A9&":NAME:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2))+2,255)
C9:C10C9=MID(XLOOKUP($A9&":Date of Birth:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2),FIND("h:",XLOOKUP($A9&":Date of Birth:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2))+2,255)
D9:D10D9=MID(XLOOKUP($A9&":Mobile:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2),FIND("e:",XLOOKUP($A9&":Mobile:*",$G$9:$G$14,$G$9:$G$14,"Not Found",2))+2,255)
Thank you for this.....

I am still having some trouble.

These are the headings in the raw data file:-

1642658249074.png


These are the headings in the dashboard/summary (where i need to extract data to)
The TEAM column is a dropdown field and when i choose a TEAM, it then populates the CLUB, PRESIDENT & COACH.

1642658414087.png

These are the headings relating to the players.
I need it to auto-populate the players like you have done above, but when I change the TEAM, the players update according to what I have chosen.
There are 35 rows which have different teams, clubs & players.

PLAYER #NAMEDATE OF BIRTHMOBILE
 
Upvote 0
You will need to provide sample data that includes the all columns to be used as criteria to extract the data you need returned.
Also if the player field does not have 1: 2: 3: etc as a prefix at the Team level (assuming that is the filter criteria), then you need to show the data as it really appears since I was relying on that to find the data.
Ideally provide the data as an Xl2BB so we can copy it into our Excel.
 
Upvote 0
This is my take on it. I wasn't sure that the player numbers had to match, or if they do the players would be listed in order like the sample.

yvette78.xlsm
KL
1Team NamePlayers
2Team 11:Name:joe bloggs
3Team 11:Date of Birth:28/11/2002
4Team 11:Mobile:044444444
5Team 12:Name:joe bloggs2
6Team 12:Date of Birth:28/11/2005
7Team 12:Mobile:099999999
8Team 21:Name:ken bloggs
9Team 21:Date of Birth:28/11/2000
10Team 21:Mobile:044444455
11Team 22:Name:jon bloggs
12Team 22:Date of Birth:8/1/2000
13Team 22:Mobile:044449955
14Team 23:Name:sam bloggs
15Team 23:Date of Birth:12/4/2006
16Team 23:Mobile:088444455
17
RAW DATA


yvette78.xlsm
ABCD
1Team Name
2Team 2
3
4
5
6PLAYER NONAMEDATE OF BIRTHMOBILE NO.
71ken bloggs28/11/2000044444455
82jon bloggs8/1/2000044449955
93sam bloggs12/4/2006088444455
104   
Dashboard
Cell Formulas
RangeFormula
B7:D10B7=LET(t,INDEX(FILTER('RAW DATA'!$L$2:$L$100,'RAW DATA'!$K$2:$K$100=$A$2),($A7-1)*3+COLUMNS($B:B)),IFERROR(REPLACE(t,1,FIND(":",t,5),""),""))
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Help needed with splitting data into separate columns
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
I need some help again with regards to splitting data but this is for another document.

When a course date is chosen at A10, I want it to populate all the participants details that have the same date in the RAW DATA tab (Column G) but the data I need split comes from the PARTICIPANTS DATA CELL tab (A2).

DATA TO SPLIT: Joe Bloggs :Pizzey park:bloggs@gmail.com:0407313335:NetSetGo

PARTICIPANTS NAME: JOE BLOGGS
CLUB NAME: PIZZEY PARK
EMAIL: bloggs@gmail.com
PHONE NUMBER: 0407313335
COMPETITION:NetSetGo

Please note that sometimes there may be more than one participant, so the formula will need to be able to list each participant in a separate line on the FORM. For example, L3 in the RAW DATA tab has two participants, as follows:-

Joe Love :Palm Beach :bloggsf@hotmail.com:0407777777:Junior

Joe Love 2 :Palm Beach :bloggs3@hotmail.com:042222222:Junior

so I need Joe Love details on one line, then Joe LOVE 2's details on the next.

I hope this makes sense.

Thanks

Document is attached

 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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