Split cell into 4 seperate cols .

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
701
Office Version
  1. 2016
Platform
  1. Windows
Hello all , i was wanting to know if there are some functions that can get data from col D and put this into cols C E F and G .

The first 4 rows i have given example , i will always fill cols A and B myself .

Most of the data in from the right side of cell but because they are all different lenghts this makes it tricky using functions left , mid , right etc .

Note cell F2 is blank because there isnt a class mentioned in cell D2 .
Thanks .
Excel Workbook
ABCDEFG
1MonYearDateTypeG123LClassDist
2Apr19891/04/1989WFA G1, G1, WFA 2000m - April 11WFA2000
3Apr19891/04/1989G3 RACE IMAGES STAKES, G3, 1600m - April 131600
4Apr19898/04/198981ST SWETTENHAM STUD SIRES PRODUCE STAKES, G1, 2YO 1400m - April 812YO1400
5Apr198915/04/1989WYBORN STAKES, G2, F&M 1600m - April 152F&M1600
6Apr1989G3 TERRACE REGENCY HOTEL WEIGHT-FOR-AGE, G3, WFA 1400m - April 19
7Apr198918TH OWENS INTERNATIONAL, G3, 1600m - April 22
8Apr1989HAWKES BAY CUP, G3, 2200m - April 22
9Apr1989G3 REDOUBT CLASSIC, G3, 2YOF HCP 1200m - April 25
10Apr1989STAR WAY 2000, L, WFA F&M 2000m - April 25
11Apr19893YO, L, 3YO HCP 1600m - April 25
Sheet1
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
C2: =datevalue(a2&b2)+right(d2,2)-1
e2: =if(mid(d2,search(",",d2)+3,1)=",","",mid(d2,search(",",d2)+3,1))
f2: =if(mid(d2,search("-",d2)-8,1)=",","",mid(d2,search("-",d2)-10,3))
g2: =mid(d2,search("-",d2)-6,4)
 
Upvote 0
Thanks RonB1111 .
The col C is working fine .
Col E is working but not recognising letter L .
Col F is working some as well but cell F6 now says TEL , should be WFA , cells F9 and F11 now say HCP should say 2YOF HCP AND 3YO HCP .
Col G cell G6 now says WEIG should be 1400 .

Overall its a big help and less cutting and pasting . Thanks .
 
Upvote 0
1] Column C
=--(TRIM(RIGHT(D2,2))&A2&B2)

2] Column E
=MID(D2,FIND("&",SUBSTITUTE(D2,",","&",2))-1,1)

3] Column F
=IFERROR(MID(D2,FIND("&",SUBSTITUTE(D2,",","&",2))+2,FIND("m -",D2)-FIND("&",SUBSTITUTE(D2,",","&",2))-7),"")

4] Column G
=MID(D2,SEARCH("m -",D2)-4,4)
 
Upvote 0
Thanks bosco_yip , they are working great , thankyou .
 
Upvote 0

Forum statistics

Threads
1,214,414
Messages
6,119,373
Members
448,888
Latest member
Arle8907

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