ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I sort a column using the last number in the cell? (https://www.excelbanter.com/excel-discussion-misc-queries/260939-how-do-i-sort-column-using-last-number-cell.html)

Susan

How do I sort a column using the last number in the cell?
 
I need to sort a spreadsheet by using the last digit in a column that has
department numbers.

EX: 300009
300006
300004

Thank you!

FSt1

How do I sort a column using the last number in the cell?
 
hi
use a helper column.
in a column to the right of the data, enter this formula.....
=right(A2,1)
copy down.
use the helper column as the primary sort key.

regards
FSt1

"Susan" wrote:

I need to sort a spreadsheet by using the last digit in a column that has
department numbers.

EX: 300009
300006
300004

Thank you!


Mike H

How do I sort a column using the last number in the cell?
 
Hi,

use a helper column to extract the last number

=RIGHT(A1,1)

Select both columns and sort on the helper column which you can hide.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Susan" wrote:

I need to sort a spreadsheet by using the last digit in a column that has
department numbers.

EX: 300009
300006
300004

Thank you!



All times are GMT +1. The time now is 07:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com