HowdeeDoodee
Well-known Member
- Joined
- Nov 15, 2004
- Messages
- 599
Is there any way to turn two numbers within a cell separated by a dash into a series of numbers separated by commas?
Here is an example from the actual data BEFORE:
; Enn 6:16-20 ;
; 1Ctcc 6:3-15,50-53 ;
; Ent 4:14-16,27-31 ;
; Edr 28:40-43 ;
; Eefx 5:20,21 ; Newt 14:2-5,10 ; Nubb 16:3-11,41 ; Naab 20:2 ;
; Newt 16:46-48 ;
; Newt 20:10-12 ;
; Naab 20:12,23-29 ;
; Jtwq 12:13-15 ;
; Darew 1:6-20 ; Darew 2:17,49 ; Dnnrt 3:12-30 ; Httdb 11:34 ;
; Enn 4:1-15,25 ;
; 2Std 20:14-22 ;
; 1Std 8:1-5 ; 1Cdtdd 6:28 ;
; 1Std 22:20-23 ; 1Std 22:6-19 ;
Here is a sample of the data AFTER the macro is run
; Enn 6:16,17,18,19,20 ;
; 1Ctcc 6:3,4,5,6,7,8,50,51,52,53 ;
; Ent 4:14,15,16,27,28,29,30,31 ;
Thank you in advance for any replies.
Here is an example from the actual data BEFORE:
; Enn 6:16-20 ;
; 1Ctcc 6:3-15,50-53 ;
; Ent 4:14-16,27-31 ;
; Edr 28:40-43 ;
; Eefx 5:20,21 ; Newt 14:2-5,10 ; Nubb 16:3-11,41 ; Naab 20:2 ;
; Newt 16:46-48 ;
; Newt 20:10-12 ;
; Naab 20:12,23-29 ;
; Jtwq 12:13-15 ;
; Darew 1:6-20 ; Darew 2:17,49 ; Dnnrt 3:12-30 ; Httdb 11:34 ;
; Enn 4:1-15,25 ;
; 2Std 20:14-22 ;
; 1Std 8:1-5 ; 1Cdtdd 6:28 ;
; 1Std 22:20-23 ; 1Std 22:6-19 ;
Here is a sample of the data AFTER the macro is run
; Enn 6:16,17,18,19,20 ;
; 1Ctcc 6:3,4,5,6,7,8,50,51,52,53 ;
; Ent 4:14,15,16,27,28,29,30,31 ;
Thank you in advance for any replies.