Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default Numbers change in cell even when formatted as text

I have a list of cells that I'm searching for the value: !5-10 , and I want to replace all of them (100+) with the value 5-10, essentially just dropping the "!". When I use Find and Replace to do this en masse, it finds the target value just fine, but it changes it to "41769", even when the cell format is set to text.

Incidentally, if I do it manually and delete the "!" in each cell, it shows up as desired.

Why won't it do this automatically and how can I fix that?

Thanks,
mb
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Numbers change in cell even when formatted as text

Hi Michael,

Am Tue, 28 Oct 2014 06:45:22 -0700 (PDT) schrieb michaelberrier:

Incidentally, if I do it manually and delete the "!" in each cell, it shows up as desired.


search for "!" and replace it with "'"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 63
Default Numbers change in cell even when formatted as text

On Tuesday, October 28, 2014 9:50:26 AM UTC-4, Claus Busch wrote:
Hi Michael,

Am Tue, 28 Oct 2014 06:45:22 -0700 (PDT) schrieb michaelberrier:

Incidentally, if I do it manually and delete the "!" in each cell, it shows up as desired.


search for "!" and replace it with "'"


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional


Claus,
This originally started when I imported a workbook of survey data with a column representing years of experience. Some of the options were "1-3", 3-5", etc. For every one of those that could be translated into a date (1/3/2014), the spreadsheet automatically did that. Is there a way to stop Excel from doing that so I don't have to make this fix in the first place?
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Numbers change in cell even when formatted as text

Hi Michael,

Am Tue, 28 Oct 2014 08:32:37 -0700 (PDT) schrieb michaelberrier:

This originally started when I imported a workbook of survey data with a column representing years of experience. Some of the options were "1-3", 3-5", etc. For every one of those that could be translated into a date (1/3/2014), the spreadsheet automatically did that. Is there a way to stop Excel from doing that so I don't have to make this fix in the first place?


if you format all cells before deleting the "!" the value should remain.
The "'" is only a prefix for text formatted cells. You only see it in
the edit bar. If you see it in the cell you have a leading space.
Then search " !" and replace with "'"

Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Numbers change in cell even when formatted as text

Hi again,

Am Tue, 28 Oct 2014 08:32:37 -0700 (PDT) schrieb michaelberrier:

This originally started when I imported a workbook of survey data with a column representing years of experience. Some of the options were "1-3", 3-5", etc. For every one of those that could be translated into a date (1/3/2014), the spreadsheet automatically did that. Is there a way to stop Excel from doing that so I don't have to make this fix in the first place?


format the expected column as text before importing the data.


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional


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
numbers formatted as text willemeulen[_28_] Excel Discussion (Misc queries) 13 June 8th 09 02:25 PM
a code to trace pure numbers formatted as Text swordsman Excel Programming 4 September 3rd 07 11:28 PM
Pivot Table keep apart cells text that I've formatted as numbers Paulo Bevervanso Excel Worksheet Functions 2 September 21st 05 08:45 PM
Converting numbers formatted as text to numbers Bill Excel Discussion (Misc queries) 1 July 19th 05 07:10 PM
Converting 'General' formatted cells to Text formatted cell using. Zahid Khan Excel Worksheet Functions 1 March 12th 05 07:13 PM


All times are GMT +1. The time now is 02:04 PM.

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

About Us

"It's about Microsoft Excel"