Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 55
Default EXCEL 07 Sort

I have a spreadsheet that comes to me daily with about 60K rows in it. One
of the columns has cells with 15 digit numbers in it formatted as text. I
need to do a sort by the last two numbers in that cell, and then subtotal
the number for each sorted group.

For instance, in the group below, I need to sort so the numbers ending in 01
are together and then subtotaled as 2. Then the 12 are sorted together and
subtotaled as 1.

234568975612401
123456789101112
674368465782701

I have never seen a number in this column begining with a 0, so not sure why
it is text, but I could easily cahnge to a big integer if it is easier to
sort or subtotal that way.

Thanks for any help.


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,805
Default EXCEL 07 Sort

You need to have an extra column
Enter the formula
=RIGHT(A1,2)
Copy it down
Copy the whole Col
Paste Special as Values

then use it to sor/subtotal etc.

"Striker" wrote:

I have a spreadsheet that comes to me daily with about 60K rows in it. One
of the columns has cells with 15 digit numbers in it formatted as text. I
need to do a sort by the last two numbers in that cell, and then subtotal
the number for each sorted group.

For instance, in the group below, I need to sort so the numbers ending in 01
are together and then subtotaled as 2. Then the 12 are sorted together and
subtotaled as 1.

234568975612401
123456789101112
674368465782701

I have never seen a number in this column begining with a 0, so not sure why
it is text, but I could easily cahnge to a big integer if it is easier to
sort or subtotal that way.

Thanks for any help.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 857
Default EXCEL 07 Sort

Hi,

If you have 60,000 rows you may find the subtotal command a little slow, so
after you have created the formula Sheeloo gave you to extract the last two
digits, you might consider a pivot table. In general pivot table are very
fast, and they don't require you to sort your data before making the pivot
table because they automatically sort on Row Label and Column Label fields.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Striker" wrote:

I have a spreadsheet that comes to me daily with about 60K rows in it. One
of the columns has cells with 15 digit numbers in it formatted as text. I
need to do a sort by the last two numbers in that cell, and then subtotal
the number for each sorted group.

For instance, in the group below, I need to sort so the numbers ending in 01
are together and then subtotaled as 2. Then the 12 are sorted together and
subtotaled as 1.

234568975612401
123456789101112
674368465782701

I have never seen a number in this column begining with a 0, so not sure why
it is text, but I could easily cahnge to a big integer if it is easier to
sort or subtotal that way.

Thanks for any help.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating workbook with an alpha sort sheet and a numeric sort shee cjlatta Excel Discussion (Misc queries) 2 January 28th 09 12:00 AM
sort function for dates does not sort properly in Office 2007 Exc. Rosalie Excel Worksheet Functions 1 November 22nd 07 10:25 PM
Sort from SQL view does not sort in EXCEL Pat M - City of Reno Excel Discussion (Misc queries) 0 August 31st 07 07:38 PM
Excel sort by Fill Color by custom list sort Dash4Cash Excel Discussion (Misc queries) 2 July 29th 05 10:45 PM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM


All times are GMT +1. The time now is 08:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"