Sorting on Portions of the Contents of a CellID: Q62719
|
Microsoft Excel cannot sort information based on a portion of a cell's contents; however, if the information in the cell is text, you can use text functions to extract the desired sorting criteria to an adjacent column, then sort the adjacent column.
For example, consider the following cells:
-|--------A--------|------B------|
1|123 123 4432 2222| |
2|432 564 3254 6666| |
3|325 754 0074 1111| |
4|677 431 8944 3333| |
=RIGHT(cell-to-left,4)
-|--------A--------|-----B------|
1|123 123 4432 2222| 2222 |
2|432 564 3254 6666| 6666 |
3|325 754 0074 1111| 1111 |
4|677 431 8944 3333| 3333 |
-|--------A--------|-----B------|
1|325 754 0074 1111| 1111 |
2|123 123 4432 2222| 2222 |
3|677 431 8944 3333| 3333 |
4|432 564 3254 6666| 6666 |
=MID(cell-to-left,9,4)
"Function Reference," version 4.0, pages 274 and 363-364
"Function Reference," version 3.0, pages 151-152 and 200
Additional query words: 1.5 2.0 2.00 2.01 2.1 2.10 2.20 2.21 3.0 5.0
Keywords :
Version :
Platform :
Issue type :
Last Reviewed: March 21, 1999