Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Sorting data with the letter 'E' included

I have a list of department codes that I need to sort. They are in the
format number, letter, number, number. All end in zero; for example 2C00,
5D00, 2E10. In most cases the last two numbers are zeros. The problem is
with the codes that contain the letter 'E'. I was originally having the
problem of Excel seeing all codes containing the letter 'E' as numbers and
putting them into scientific notation. I subsequently formatted them as text
which fixed the display problem, but now when I sort, all the department
codes that contain 'E' are sorting at the top. For example instead of
getting something like 1A00, 1B00, 1C00, etc., I'm getting 1E00, 1A00, 1B00,
etc. I've tried formatting as both 'text' and 'general', but no luck.

I'm using Excel 2007, but saving file as 2003 since not everyone where I
work has been migrated to 2007.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Sorting data with the letter 'E' included

Set format as text first, then place the data in the cells.

LyleB_Austin wrote:
I have a list of department codes that I need to sort. They are in the
format number, letter, number, number. All end in zero; for example 2C00,
5D00, 2E10. In most cases the last two numbers are zeros. The problem is
with the codes that contain the letter 'E'. I was originally having the
problem of Excel seeing all codes containing the letter 'E' as numbers and
putting them into scientific notation. I subsequently formatted them as text
which fixed the display problem, but now when I sort, all the department
codes that contain 'E' are sorting at the top. For example instead of
getting something like 1A00, 1B00, 1C00, etc., I'm getting 1E00, 1A00, 1B00,
etc. I've tried formatting as both 'text' and 'general', but no luck.

I'm using Excel 2007, but saving file as 2003 since not everyone where I
work has been migrated to 2007.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Sorting data with the letter 'E' included

Even with the cell formatting, XL is trying to be *helpful* and sort what it
believes is a number as a number. We can "cheat" with a helper column. Insert
a column, and use this formula, copied down:
=LEFT(A2,4)&"Z"

Now XL is forced to treat our values as text. Sort on this helper column,
and you should get your desired results.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"LyleB_Austin" wrote:

I have a list of department codes that I need to sort. They are in the
format number, letter, number, number. All end in zero; for example 2C00,
5D00, 2E10. In most cases the last two numbers are zeros. The problem is
with the codes that contain the letter 'E'. I was originally having the
problem of Excel seeing all codes containing the letter 'E' as numbers and
putting them into scientific notation. I subsequently formatted them as text
which fixed the display problem, but now when I sort, all the department
codes that contain 'E' are sorting at the top. For example instead of
getting something like 1A00, 1B00, 1C00, etc., I'm getting 1E00, 1A00, 1B00,
etc. I've tried formatting as both 'text' and 'general', but no luck.

I'm using Excel 2007, but saving file as 2003 since not everyone where I
work has been migrated to 2007.

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
Sorting Numbers with letter suffixes Terry Bennett Excel Worksheet Functions 13 April 4th 23 12:56 PM
Sorting a column from the last letter or 2 letters of a part numbe Brian Denny Excel Discussion (Misc queries) 4 November 19th 06 04:25 PM
Scale: Automatically included latest data Jack Hairston Charts and Charting in Excel 0 April 27th 06 04:24 PM
Help! data from pasted table is not included in sum campli Excel Worksheet Functions 5 January 12th 06 08:54 PM
pivot table with selection values not included in the base data confused Charts and Charting in Excel 0 June 21st 05 02:42 PM


All times are GMT +1. The time now is 11:23 PM.

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

About Us

"It's about Microsoft Excel"