How to separate text + number from one cell into rows and analyse duplicates in Excel for Mac 2008

Paolo1309

New Member
Joined
Jan 4, 2014
Messages
10
Dear All

I am using Excel for Mac 2008 and I can't activate the VBE function. I have a very long code made of numbers and text as the example below:

"661270027-2","1465607302-2","600752322-2","2704608-2","560073572-2","1249297624-2","556533864-2","561251776-2","572372400-2","548584429-3","548584429-0","512879918-2","511218371-2","841230300-2","596398500-2","666150726-2"

The codes are all separated by -#"," and when I extract them and paste them on Excel they all go into the same cell A1 example below:

[TABLE="width: 386"]
<tbody>[TR]
[TD="width: 386, colspan: 6"]A1
661270027-2,"1465607302- 2","6007523222","27046082","560073572-2","[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]C1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

1) I would like to separate the long code into different rows and get rid off the -#"," at the same time so i can keep just the numeric codes I am interested about. example below:


[TABLE="width: 65"]
<tbody>[TR]
[TD="class: xl24, width: 65, align: right"]B1
661270027[/TD]
[/TR]
[TR]
[TD="align: right"]C1 1465607302[/TD]
[/TR]
[TR]
[TD="align: right"]D1
600752322[/TD]
[/TR]
[TR]
[TD="align: right"]E1
2704608[/TD]
[/TR]
[TR]
[TD="align: right"]F1
560073572
[/TD]
[/TR]
</tbody>[/TABLE]

2) I would like Excel to find any duplicates among the clean codes (if any) and alert me somehow (highlight is ok)

3) I would like Excel to "tell me" which codes duplicate the most (if any) perhaps organising them by numerical order (starting with the one who duplicates more often..)

I know I am asking a lot but all your help is very very much appreciated.

Cheers
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Give this formula a try (enter it into B1, then drag it down and right):

=TRIM(MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A1,""",""","-"),"""",""),"-",REPT(" ",999)),1998*COLUMN(A1)-1997,999))
 
Upvote 0
Sure! and thank you in advance!!!

Whoops... I just re-read your original message (and the thread title too) where you said you were using Excel for Mac 2008 which does not support VBA macros, so I cannot write one for that will work on your computer. Sorry, but I am out of ideas. Is there anyway you can get the source of your text to split the values down to a more mangeable size at that source's end?
 
Upvote 0
I guess I can get hold of a PC with office though. If CBA macros would solve my problems.

Okay, I'll write one up for you. One question though... do you only have cell A1 filled with your text of do you multiple cells in Column A with text in each cell that need to be split out?
 
Upvote 0
Yes all 18000+ characters are in cell A1. but splitting is only the first thing I need to do I had 2 more points:

2) I would like Excel to find any duplicates among the clean codes (if any) and alert me somehow (highlight is ok)

3) I would like Excel to "tell me" which codes duplicate the most (if any) perhaps organising them by numerical order (starting with the one who duplicates more often..)

THANK YOU SO MUCH RICK!!!
 
Upvote 0
Yes all 18000+ characters are in cell A1. but splitting is only the first thing I need to do I had 2 more points:

2) I would like Excel to find any duplicates among the clean codes (if any) and alert me somehow (highlight is ok)

3) I would like Excel to "tell me" which codes duplicate the most (if any) perhaps organising them by numerical order (starting with the one who duplicates more often..)

THANK YOU SO MUCH RICK!!!
Okay, initially then, only one cell has to be processed. You asked for the split out cells to go across Row 1... is there a particular need for that orientation or could I split them down the column instead (there are many more rows than columns and data is easier to scroll and read when it is located down a column)?
 
Upvote 0
Okay, initially then, only one cell has to be processed. You asked for the split out cells to go across Row 1... is there a particular need for that orientation or could I split them down the column instead (there are many more rows than columns and data is easier to scroll and read when it is located down a column)?
Actually, I am going to take that decision away from you and list the split out codes down Column A... that way, I can put the number of times code is repeated next to it in Column B and the an index number of 1, 2, 3, etc. in Column C. That way, the cells in Column B will have number only if its corresponding value in Column A is part of a duplicate. And, you can then select Columns A, B and C and sort on Column B to find out which ones are repeated the most... sorting on Column C would allow you return the list back to it original order.
 
Upvote 0

Forum statistics

Threads
1,224,899
Messages
6,181,627
Members
453,058
Latest member
rmd0725

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