Sort, relisted

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
That formula should work. Does your data in G2 have spaces at the end perhaps?
 
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
 
Ensure that H2 is not formatted as text - you should see 2101040 in
there.

Pete
 
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
 
Format H2 as General (format|cells|Number tab)

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Add formula if 2
creating nested formulas from drop down box 5
Aging Formula 5
Excel A CountIF question... I think 2
How do I add a formula to a macro? 4
Sorting 7
SUMIF 7
macro ignore formulas 3

Back
Top