Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default copying a cell and changing the formating from number to text

I have a spreadsheet that has numbers and number/letter combinations that I
am trying to reformat to text so it will sort like a text sort versus a
number. I have tried refromatting all cells to text but it still does not
sort correctly. Is there a way to copy to contents of the cell to another
location and change the formatting to text?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default copying a cell and changing the formating from number to text

Changing the numberformat of a cell doesn't change the underlying values.

If you're trying to convert numbers to text, how about using a helper column
with a formula like:

=a1&""
or
=text(a1,"000000")
(if you need leading zeros)

Then drag down the column and sort your data by this helper column.

Mark Gloves wrote:

I have a spreadsheet that has numbers and number/letter combinations that I
am trying to reformat to text so it will sort like a text sort versus a
number. I have tried refromatting all cells to text but it still does not
sort correctly. Is there a way to copy to contents of the cell to another
location and change the formatting to text?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default copying a cell and changing the formating from number to text

Dave, thanks, but it didn't change any thing. Basically I'm trying to sort
about 2000 items so they start wtih "1", then "10", then "1000", "2", "20",
"2000". There are some items that have numbers and letters like 24C,
6900BXL, etc. I thought that making the numbers text would alllow it to sort
in that kind of order versus 1,2,3,4....1000, 1001, etc.

Mark

"Dave Peterson" wrote:

Changing the numberformat of a cell doesn't change the underlying values.

If you're trying to convert numbers to text, how about using a helper column
with a formula like:

=a1&""
or
=text(a1,"000000")
(if you need leading zeros)

Then drag down the column and sort your data by this helper column.

Mark Gloves wrote:

I have a spreadsheet that has numbers and number/letter combinations that I
am trying to reformat to text so it will sort like a text sort versus a
number. I have tried refromatting all cells to text but it still does not
sort correctly. Is there a way to copy to contents of the cell to another
location and change the formatting to text?


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default copying a cell and changing the formating from number to text

Nope. Changing them to text will allow them to sort as text

1
11
1234
2
23
23b
....

You're life will be lots easier if you can separate the numbers and the letters
into different columns.

Or if you do your data entry nice (all text)

00001
00001A
00011A
00023B
....



Mark Gloves wrote:

Dave, thanks, but it didn't change any thing. Basically I'm trying to sort
about 2000 items so they start wtih "1", then "10", then "1000", "2", "20",
"2000". There are some items that have numbers and letters like 24C,
6900BXL, etc. I thought that making the numbers text would alllow it to sort
in that kind of order versus 1,2,3,4....1000, 1001, etc.

Mark

"Dave Peterson" wrote:

Changing the numberformat of a cell doesn't change the underlying values.

If you're trying to convert numbers to text, how about using a helper column
with a formula like:

=a1&""
or
=text(a1,"000000")
(if you need leading zeros)

Then drag down the column and sort your data by this helper column.

Mark Gloves wrote:

I have a spreadsheet that has numbers and number/letter combinations that I
am trying to reformat to text so it will sort like a text sort versus a
number. I have tried refromatting all cells to text but it still does not
sort correctly. Is there a way to copy to contents of the cell to another
location and change the formatting to text?


--

Dave Peterson


--

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
Formating a number in a cell [email protected] Excel Discussion (Misc queries) 3 May 16th 07 03:43 PM
Copying and pasting table info and cell formating in one hit Sam at JWP Excel Discussion (Misc queries) 3 April 19th 07 03:24 AM
copying info from one cell to another, changing the format, but leaving the number herosuper Excel Worksheet Functions 1 August 27th 06 06:13 AM
edit number in cell without it changing to text rklremote Excel Discussion (Misc queries) 1 May 19th 05 10:22 PM
Changing cell or text color depending on week number Roger Excel Discussion (Misc queries) 2 April 12th 05 09:42 AM


All times are GMT +1. The time now is 03:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"