I have data on a1
Want formula on d1 to n1 to drag down
I have plugged results for d1 and d9
I have data on a1
Want formula on d1 to n1 to drag down
I have plugged results for d1 and d9
The file looks as follows
Your data is not consistent - the first few entries have a comma separating the first and second pairs and a comma-space separating the 2nd and 3rd pairs, but your final entry has only spaces separating all the pairs. Are these just typing errors, or is this representative of your real data?
Pete
Assuming if we have common and no space how will the formula look
Last edited by makinmomb; 12-02-2015 at 08:49 PM.
Maybe we use a helper to strip of code and then use use & to combine
Text2Columns kinda works, but doesnt maintain the "text" in each cell, and converts (most of) the remaining, to dates...
A B C D E F G 12LB621TN 6/2,7/2,11/1 LB621TN 2-Jun 2-Jul 1-Nov 13LB624BR 6/2,7/2,10/2 LB624BR 2-Jun 2-Jul 2-Oct 14LB627KK 6/2,8/2,9/2 LB627KK 2-Jun 2-Aug 2-Sep 15LB721BR 41/2 LB721BR 41/2 16LB717BR 40/2,45/2 LB717BR 40/2 45/2 17LB618BR 40/2,41/2 LB618BR 40/2 41/2 18LB571CF 42/2 LB571CF 42/2 19LB708C 45/2 LB708C 45/2 20CT248BG 36/1 37/1 38/1 39/1 40/1 41/1 CT248BG 36/1 37/1 38/1
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Further to FDibbins' suggestion, you could do Text_to_columns using space as the delimiter to get the first part of the codes into column B and the second (right-hand) part into column C - assuming that you only use one space in the codes, with a comma (only) to separate out each of the pairs that follow.
Then you could apply Find & Replace (Ctrl-H) to column C to change the / to comma.
Then use Text_to_Columns again, but on column C, using comma as the delimiter and column C as the first destination column. Then you can insert two new columns B and C, to get approximately what you want.
Hope this helps.
Pete
Text to column works , not very happy about it , will leave the thread open
VBA solution, assuming "," (Comma) as delimiter
Please Login or Register to view this content.
John Topley , it cannot be better than this , thank you very much
Thank you for the feedback.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks