I have a list of alpha numerics I wish to sort but they are coming up as the
Excel 'default'. I prefer the desired result. Any thoughts? Thanks
Original Sorted Desired
D10 D07 D07
D09 D09 D09
D07 D10 D10
D11 D105 D11
D12 D11 D12
D20 D117 D20
D117 D12 D105
D105 D20 D117
your data isn't sorting properly because it is type text, which always sorts
alphabetically left-gt;right (so it won't distinguish between a 1 in the tens
or hundreds place). I have two suggestions:
1. If you don't have much data, re-enter all of it with a zero in the
hundreds place for all numbers below 100 (D07 becomes D007)
2. If you have a lot of data, copy your column into a new column.
Highlight this column. Using Edit-gt;Replace, Replace the quot;Dquot; with nothing.
Then, Format-gt; Cells -gt; Number -gt; Number. This will change the data in this
column to number format. Sort using this column.
--
Anne Murrayquot;CS Project Manquot; wrote:
gt; I have a list of alpha numerics I wish to sort but they are coming up as the
gt; Excel 'default'. I prefer the desired result. Any thoughts? Thanks
gt;
gt; Original Sorted Desired
gt; D10 D07 D07
gt; D09 D09 D09
gt; D07 D10 D10
gt; D11 D105 D11
gt; D12 D11 D12
gt; D20 D117 D20
gt; D117 D12 D105
gt; D105 D20 D117
Hi,
Do all the alpha-numeric strings in your worksheet start with the letter quot;Dquot;
(as in your sample data). If that is the case, a quick solution is:
Let's suppose that the strings are in A2:A101. Enter the following array
formula in B2.
=quot;Dquot;amp;SMALL(MID($A$2:$A$101,2,255)*1,ROW(A1))
Confirm with CTRL-SHIFT-ENTER, and auto-fill the formula down to B101.
Regards,
B. R. Ramachandran
quot;CS Project Manquot; wrote:
gt; I have a list of alpha numerics I wish to sort but they are coming up as the
gt; Excel 'default'. I prefer the desired result. Any thoughts? Thanks
gt;
gt; Original Sorted Desired
gt; D10 D07 D07
gt; D09 D09 D09
gt; D07 D10 D10
gt; D11 D105 D11
gt; D12 D11 D12
gt; D20 D117 D20
gt; D117 D12 D105
gt; D105 D20 D117
- Nov 03 Mon 2008 20:47
Sorting Alpha Numeric
close
全站熱搜
留言列表
發表留言