close

In importing a text file to excel, I am looking for a way to expand
ranges of numbers. For example, the text line quot;1,2,4-6quot; includes the
number 5 (in the range 4-6). But when it is imported, using the
delimiter quot;,quot; the result puts the string quot;4-6quot; in one cell. Adding quot;-quot;
as a delimiter, I get two cells: 4, and 6. What I actually want is three
cells: 4, 5, and 6.

Is there a way to either process this on import, or to convert quot;4-6quot;
after importing?--
chchch
------------------------------------------------------------------------
chchch's Profile: www.excelforum.com/member.php...oamp;userid=31970
View this thread: www.excelforum.com/showthread...hreadid=517399You could use Find and Replace after importing - highlight the column
containing these ranges, and CTRL-H. In the Find What box enter 4-6 and
in the Replace With box enter 4,5,6, then click Replace All. You can do
this for other ranges in this style, then you can use
Data/Text-to-Columns to parse these using comma as the delimiter.

Hope this helps.

Pete

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

    software

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