looking to simplify numbers. remove slashes and show sequences. any help would be apreciated

bmuddy2

Active Member
Joined
Jun 22, 2004
Messages
398

Book1
ABCDEFGH
2A is the original number as written.
3
484535831 / 2 (2) this can be broken down to read 84535831 and 84535832. (2) means 2 people
5
6column B, removed the / and replaced the last number with what was after the /.
7C,D,E if more than one / exists. No more than 4 should be there.
8
9Column f is whats in the () or place a 1 if () does not exist.
10
11ABCDEFG
12A, original number.B, no /'s or ()'s.C, 84535831 becomes 84535832.D, same as C but the 2nd /.E, same as D but the 3rd /.F, same as E but the 4th /.G
13184535831 / 2 (2)84535831845358322
14284506770 / 184506770845067711
15384074165/ 6 / 78407416584074166840741671
16423408830234088301
17584330244843302441
18684524615845246151
19784280873842808731
20884145691841456911
21984212543842125431
221084378246 (2)843782462
231184448335 / 6 / 7 / 8844483358444833684448337844483381
241284195536 / 784195536841955371
251323324603 / 423324603233246041
261484280872842808721
271584196824841968241
28166002TM0519/206002TM05196002TM05201
29176002TM0521/226002TM05216002TM05221
301884428905844289051
311984428906844289061
322084428907844289071
332184017727840177271
342284400203 (3)844002033
352322939891 (2)229398912
362484319671 (2)843196712
372584013501 (2)840135012
382684052648 (2)840526482
392726213538 (2)262135382
402842333372 / 3 (2)42333372423333732
412980307495 (2)803074952
423023241470232414701
433184492946844929461
443284377233843772331
453384206594842065941
463423326349233263491
473584206594 (1)842065941
Sheet2
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Assuming your data starts on Row 1 in Column A, put this formula in cell B1...

=TRIM(LEFT(A1,FIND("/",REPLACE(A1,FIND("(",A1&"("),99,"")&"/")-1))

then put this formula in cell C1 and copy it across to cell E1...

=IF(LEN(TRIM(MID(SUBSTITUTE(LEFT($A1,FIND("(",$A1&"(")-1),"/",REPT(" ",99)),COLUMNS($F:F)*99,99))),TRIM(LEFT($A1,FIND("/",REPLACE($A1,FIND("(",$A1&"("),99,"")&"/")-1))&TRIM(MID(SUBSTITUTE(LEFT($A1,FIND("(",$A1&"(")-1),"/",REPT(" ",99)),COLUMNS($F:F)*99,99)),"")

and finally put this formula in cell F1...

=IFERROR(-MID(A1,FIND("(",A1),9),1)

Once you have done that, select the range B1:F1 and copy it down to the bottom of your data.
 
Last edited:
Upvote 0
If you have PowerQuery available on your version of Excel at work, you can also accomplish this. I was able to do it, but get the output to be a more proper data set in the end compared to what you requested. Here's how it came out.

[TABLE="width: 147"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Number[/TD]
[TD]Parens[/TD]
[/TR]
[TR]
[TD]84535831[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]84535832[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]84506770[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84506771[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84074165[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84074166[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84074167[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84448335[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84448336[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84448337[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84448338[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84195536[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]84195537[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]23324603[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]23324604[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6002TM0519[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6002TM0520[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6002TM0521[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6002TM0522[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]42333372[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]42333373[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]

But, Rick's formula solution is great and will probably do exactly what you need. Just throwing it out there as an alternative to formulas like that which make my head hurt.
 
Upvote 0
thanks rick. seems to be working.

IROBBO314, Ill have to check on that. I know its excel 365 and honestly I've only been using that version for a few weeks.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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