A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

EXCEL 07 Sort



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2009, 03:54 PM posted to microsoft.public.excel.newusers
Striker
external usenet poster
 
Posts: 47
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  
Old March 2nd, 2009, 05:15 PM posted to microsoft.public.excel.newusers
Sheeloo[_3_]
external usenet poster
 
Posts: 1,713
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  
Old March 3rd, 2009, 03:07 AM posted to microsoft.public.excel.newusers
Shane Devenshire
external usenet poster
 
Posts: 845
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:52 PM.


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