close

I am trying to limit the amount of numbers that are in a cell. For example I
have a cell that has this sort of number 1220H123456, and I only want to have
the last six digits in that cell so I can sort in a numerical order. I have
been deleting the first 5 digits manually, but that takes way too much time
when the list has over 3000 rows. Any help would be wonderful!!!

Jeff

Use a quot;helperquot; column which contains a text formula to parse out the
beginning characters.
Then you can sort on that helper column.

Data in A1 to A3000.
Enter this in B1:

=RIGHT(A1,6)

Drag down to copy,
OR
*Double* click the fill handle on B1, to *automatically* copy the formula
down Column B, as far as there is data in Column A.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
quot;Jeffquot; gt; wrote in message
...
gt; I am trying to limit the amount of numbers that are in a cell. For example
I
gt; have a cell that has this sort of number 1220H123456, and I only want to
have
gt; the last six digits in that cell so I can sort in a numerical order. I
have
gt; been deleting the first 5 digits manually, but that takes way too much
time
gt; when the list has over 3000 rows. Any help would be wonderful!!!
gt;
gt; Jeff
Select the entire column.

Go to Data|Text to Columns and select Fixed Width radio button.

Click Next and in the white area, click just before the 5th last digit
in one of the numbers. You should see a vertical line separating the
numbers. You can drag the line over if you missed the point of
separation.

Click Finish. The numbers should be separated into 2 columns. Now you
can delete or hide the unwanted column of numbers.--
Vito
------------------------------------------------------------------------
Vito's Profile: www.excelforum.com/member.php...oamp;userid=29182
View this thread: www.excelforum.com/showthread...hreadid=497176Vito - I think you hit on the formatting in my spreadsheet that I have been
trying to get rid of. I have a vertical line within certain cells in several
columns. I used your instructions below and it looks like the vertical line
is a delimited character. How do I get rid of it so I can copy and paste
these cells without the vertical line?

quot;Vitoquot; wrote:

gt;
gt; Select the entire column.
gt;
gt; Go to Data|Text to Columns and select Fixed Width radio button.
gt;
gt; Click Next and in the white area, click just before the 5th last digit
gt; in one of the numbers. You should see a vertical line separating the
gt; numbers. You can drag the line over if you missed the point of
gt; separation.
gt;
gt; Click Finish. The numbers should be separated into 2 columns. Now you
gt; can delete or hide the unwanted column of numbers.
gt;
gt;
gt; --
gt; Vito
gt; ------------------------------------------------------------------------
gt; Vito's Profile: www.excelforum.com/member.php...oamp;userid=29182
gt; View this thread: www.excelforum.com/showthread...hreadid=497176
gt;
gt;

I don't think Vito is coming back after 3 years.

How about:
=SUBSTITUTE(A1,quot;|quot;,quot;New Textquot;)

Or if you are trying to spread the data to various columns, splitting
it up at the vertical line, just use Text To Columns, Delimited, with
| as the delimiter.

How do I remove the delimiter? How are you typing the vertical line character?

quot;Spikyquot; wrote:

gt; I don't think Vito is coming back after 3 years.
gt;
gt; How about:
gt; =SUBSTITUTE(A1,quot;|quot;,quot;New Textquot;)
gt;
gt; Or if you are trying to spread the data to various columns, splitting
gt; it up at the vertical line, just use Text To Columns, Delimited, with
gt; | as the delimiter.
gt;

On Aug 20, 8:13 am, Challenger gt;
wrote:
gt; How do I remove the delimiter? How are you typing the vertical line character?If you use Text to Columns, whatever delimiter you use will vanish.
You can use more than one, if you need a space or comma to separate
some columns, too. Otherwise, the formula I wrote before will get rid
of it and put in whatever text you want.

It's simple to type, surprisingly, but sorta hidden. The bar is
usually right above the Return/Enter button on a USA keyboard. It is
pictured as a broken line, but Windows actually types the solid line.
aka SHIFT-backslash.

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()