#1   Report Post  
Posted to microsoft.public.excel.misc
sdmccabe
 
Posts: n/a
Default Sort, relisted



I am missing something, sorry. I data I want to limit to seven characters
starts in column G2. In H2 I entered the formula, =right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in message
...
I would like to sort a column of alpha-numeric characters by
only the last
seven characters - can someone help? Thanks.



  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Sort, relisted

That formula should work. Does your data in G2 have spaces at the end perhaps?

"sdmccabe" wrote:



I am missing something, sorry. I data I want to limit to seven characters
starts in column G2. In H2 I entered the formula, =right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in message
...
I would like to sort a column of alpha-numeric characters by
only the last
seven characters - can someone help? Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Sort, relisted

What is displayed in H2? What is in cell G2?


"sdmccabe" wrote in message
...


I am missing something, sorry. I data I want to limit to
seven characters
starts in column G2. In H2 I entered the formula,
=right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort
on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in
message
...
I would like to sort a column of alpha-numeric characters
by
only the last
seven characters - can someone help? Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.misc
sdmccabe
 
Posts: n/a
Default Sort, relisted

No, no spaces at the end of the data - any other suggestions?

"Elkar" wrote:

That formula should work. Does your data in G2 have spaces at the end perhaps?

"sdmccabe" wrote:



I am missing something, sorry. I data I want to limit to seven characters
starts in column G2. In H2 I entered the formula, =right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in message
...
I would like to sort a column of alpha-numeric characters by
only the last
seven characters - can someone help? Thanks.


  #5   Report Post  
Posted to microsoft.public.excel.misc
sdmccabe
 
Posts: n/a
Default Sort, relisted

G2
JS1CK43A862101040

H2 (the formula)
=right(G2,7)

"Chip Pearson" wrote:

What is displayed in H2? What is in cell G2?


"sdmccabe" wrote in message
...


I am missing something, sorry. I data I want to limit to
seven characters
starts in column G2. In H2 I entered the formula,
=right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort
on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in
message
...
I would like to sort a column of alpha-numeric characters
by
only the last
seven characters - can someone help? Thanks.







  #6   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Sort, relisted

Try this amendment to the formula to get the last 7 characters:

=RIGHT(TRIM(G2),7)

Copy down, highlight all the columns you want sorted and sort on column
H.

Hope this helps.

Pete

  #7   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Sort, relisted

Ensure that H2 is not formatted as text - you should see 2101040 in
there.

Pete

  #8   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Sort, relisted

So, H2 just displays the formula you typed "=right(G2,7)"?

If so, the cell is probably formatted as text. Change the Cell Format to
General.

HTH,
Elkar

"sdmccabe" wrote:

G2
JS1CK43A862101040

H2 (the formula)
=right(G2,7)

"Chip Pearson" wrote:

What is displayed in H2? What is in cell G2?


"sdmccabe" wrote in message
...


I am missing something, sorry. I data I want to limit to
seven characters
starts in column G2. In H2 I entered the formula,
=right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort
on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in
message
...
I would like to sort a column of alpha-numeric characters
by
only the last
seven characters - can someone help? Thanks.





  #9   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Sort, relisted

Format H2 as General (format|cells|Number tab)

Then with H2 still selected, hit F2 and then enter.

sdmccabe wrote:

G2
JS1CK43A862101040

H2 (the formula)
=right(G2,7)

"Chip Pearson" wrote:

What is displayed in H2? What is in cell G2?


"sdmccabe" wrote in message
...


I am missing something, sorry. I data I want to limit to
seven characters
starts in column G2. In H2 I entered the formula,
=right(G2,7), but it
doesn't display the last seven - what did I do wrong?

"Chip Pearson" wrote:

Insert a new column next to your data, enter the formula
=RIGHT(A1,7), copy down as far as you need to go, and sort
on
that column.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"sdmccabe" wrote in
message
...
I would like to sort a column of alpha-numeric characters
by
only the last
seven characters - can someone help? Thanks.






--

Dave Peterson
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
Select rows and sort based on type Sarah Excel Discussion (Misc queries) 0 October 11th 05 05:06 PM
sorting more than 3 keys Brooke Excel Discussion (Misc queries) 3 June 18th 05 04:52 AM
How do I sort a column of data and have each data row sort accordi Oedalis Excel Discussion (Misc queries) 1 March 17th 05 11:52 PM
"-" ignored in sort Mike H Excel Discussion (Misc queries) 8 January 2nd 05 07:48 AM
HELP! How do you--> Lock a set of rows but also link worksheets to FRUSTRATED Excel Discussion (Misc queries) 6 December 29th 04 10:05 PM


All times are GMT +1. The time now is 11:16 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"