Thread: left or right
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Ron Ron is offline
external usenet poster
 
Posts: 250
Default left or right

Range("B1") = Mid(Range("A1"), 4, 1)

and yes just make an intermediate col with the same statement as above,
replacing the 4 with a 5 and sort on that column

Ron

"antonov" wrote:

hello there, say I have a cell with a 8 digits number in it (i.e. 54789621).
In another cell I need to have only the 4th digit (8). Is it possible? And
also: is it possible to sort the data in a column by taking the 5th digit of
each number?
thanks for your precious help