# Sort random numerical values that end in xxx-1 through xxx-4

#### DJClark

##### New Member
I haven't played with macros for a couple years, I think this one is beyond my abilities right now. Have a large data set (100K+ rows of data in multiple worksheets) that I need to sort and compile so I can compare delta values by Batch #'s ending in -1 vs -2's or -3 vs -4's. The batch # is a numeric sequence that ends in either a -1(a,b,c), -2(a,b,c), -3(a,b,c), or -4(a,b,c).

 Batch Date (MMDDYY) Initials Weight (mg) delta H (J/g) 130402-2a 4/3/2013 pjv 5.64 119.0 130402-2b 4/3/2013 pjv 5.53 114.7 130402-2c 4/3/2013 pjv 5.74 118.5 Avg.H= 117.4 Range = 4.3 Batch Date (MMDDYY) Initials Weight (mg) delta H (J/g) 130407-3a 4/8/2013 pjv 5.70 119.6 130407-3b 4/8/2013 pjv 5.28 119.2 130407-3c 4/8/2013 pjv 5.42 117.3 Avg.H= 118.7 Range = 2.3

<tbody>
</tbody>

<tbody>
</tbody>
 Thanks for any help!

<tbody>
</tbody>

<tbody>
</tbody>

### Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

1,203,242
Messages
6,054,353
Members
444,718
Latest member
r0nster

### 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.

### Which adblocker are you using?

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

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