PC Review


Reply
Thread Tools Rate Thread

a code to trace pure numbers formatted as Text

 
 
=?Utf-8?B?c3dvcmRzbWFu?=
Guest
Posts: n/a
 
      3rd Sep 2007
Dear All,

in a world full of bugs...
and in worksheets programmed to function as required...

Can someone please avail a code/macro that can highlight a cell<s> which
contains pure numbers yet are formatted as "Text".

I need to assure that even when there comes a bug to change the cell from
any formatted number into a text, i can still review easily and verify the
worksheet to assure integrity on my logical-numeric based- formulas.

TIA
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      3rd Sep 2007
I'm not sure what pure numbers are, but this may work in most cases.

But it does assume that you're not using format|Conditional formatting for
anything else.

Select your range (I used A1:x99).
With the activecell A1, use
Format|Conditional formatting
formula is: =AND(ISNUMBER(-A1),ISTEXT(A1))
and give it a nice shade.

Be aware that these will look like they can be numbers to excel:
'1E3
'January 1, 2007
'00:12:30

1E3 = 1*10^3 = 1000
and dates and times are numbers to excel.

swordsman wrote:
>
> Dear All,
>
> in a world full of bugs...
> and in worksheets programmed to function as required...
>
> Can someone please avail a code/macro that can highlight a cell<s> which
> contains pure numbers yet are formatted as "Text".
>
> I need to assure that even when there comes a bug to change the cell from
> any formatted number into a text, i can still review easily and verify the
> worksheet to assure integrity on my logical-numeric based- formulas.
>
> TIA


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?c3dvcmRzbWFu?=
Guest
Posts: n/a
 
      3rd Sep 2007
that's a treat,

I tried it on two cells, it does provide shining colors for numbers
formatted as text.
Problem is, upon knowing through the colors, when I change these cells from
Text to General, the cells do not update even when I close/save and open the
file...
It looks like it is a must for me to press always f2...on each cells <with
pure numbers> in order that my excel recognize the change in the format and
*formula*...
Is there any other way we can automate this action <change format from text
to general> while the logical formulas <in the cell or other cells linked
here and in the cells Cond. Format> automate itself as well ?

Cheers!

"Dave Peterson" wrote:

> I'm not sure what pure numbers are, but this may work in most cases.
>
> But it does assume that you're not using format|Conditional formatting for
> anything else.
>
> Select your range (I used A1:x99).
> With the activecell A1, use
> Format|Conditional formatting
> formula is: =AND(ISNUMBER(-A1),ISTEXT(A1))
> and give it a nice shade.
>
> Be aware that these will look like they can be numbers to excel:
> '1E3
> 'January 1, 2007
> '00:12:30
>
> 1E3 = 1*10^3 = 1000
> and dates and times are numbers to excel.
>
> swordsman wrote:
> >
> > Dear All,
> >
> > in a world full of bugs...
> > and in worksheets programmed to function as required...
> >
> > Can someone please avail a code/macro that can highlight a cell<s> which
> > contains pure numbers yet are formatted as "Text".
> >
> > I need to assure that even when there comes a bug to change the cell from
> > any formatted number into a text, i can still review easily and verify the
> > worksheet to assure integrity on my logical-numeric based- formulas.
> >
> > TIA

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      3rd Sep 2007
Changing the format doesn't change the value of the cell.

Format the cells as General (or anything but text)
One quick way to change text numbers to number numbers is to select an empty
cell.
Edit|copy that cell
select the range to fix
edit|paste special|check add and values



swordsman wrote:
>
> that's a treat,
>
> I tried it on two cells, it does provide shining colors for numbers
> formatted as text.
> Problem is, upon knowing through the colors, when I change these cells from
> Text to General, the cells do not update even when I close/save and open the
> file...
> It looks like it is a must for me to press always f2...on each cells <with
> pure numbers> in order that my excel recognize the change in the format and
> *formula*...
> Is there any other way we can automate this action <change format from text
> to general> while the logical formulas <in the cell or other cells linked
> here and in the cells Cond. Format> automate itself as well ?
>
> Cheers!
>
> "Dave Peterson" wrote:
>
> > I'm not sure what pure numbers are, but this may work in most cases.
> >
> > But it does assume that you're not using format|Conditional formatting for
> > anything else.
> >
> > Select your range (I used A1:x99).
> > With the activecell A1, use
> > Format|Conditional formatting
> > formula is: =AND(ISNUMBER(-A1),ISTEXT(A1))
> > and give it a nice shade.
> >
> > Be aware that these will look like they can be numbers to excel:
> > '1E3
> > 'January 1, 2007
> > '00:12:30
> >
> > 1E3 = 1*10^3 = 1000
> > and dates and times are numbers to excel.
> >
> > swordsman wrote:
> > >
> > > Dear All,
> > >
> > > in a world full of bugs...
> > > and in worksheets programmed to function as required...
> > >
> > > Can someone please avail a code/macro that can highlight a cell<s> which
> > > contains pure numbers yet are formatted as "Text".
> > >
> > > I need to assure that even when there comes a bug to change the cell from
> > > any formatted number into a text, i can still review easily and verify the
> > > worksheet to assure integrity on my logical-numeric based- formulas.
> > >
> > > TIA

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?c3dvcmRzbWFu?=
Guest
Posts: n/a
 
      3rd Sep 2007
thanks Dave,

I will wait until someone can shorten the complete trick by a macro for a
multiple sheets workbook.

best wishes

"Dave Peterson" wrote:

> Changing the format doesn't change the value of the cell.
>
> Format the cells as General (or anything but text)
> One quick way to change text numbers to number numbers is to select an empty
> cell.
> Edit|copy that cell
> select the range to fix
> edit|paste special|check add and values
>
>
>
> swordsman wrote:
> >
> > that's a treat,
> >
> > I tried it on two cells, it does provide shining colors for numbers
> > formatted as text.
> > Problem is, upon knowing through the colors, when I change these cells from
> > Text to General, the cells do not update even when I close/save and open the
> > file...
> > It looks like it is a must for me to press always f2...on each cells <with
> > pure numbers> in order that my excel recognize the change in the format and
> > *formula*...
> > Is there any other way we can automate this action <change format from text
> > to general> while the logical formulas <in the cell or other cells linked
> > here and in the cells Cond. Format> automate itself as well ?
> >
> > Cheers!
> >
> > "Dave Peterson" wrote:
> >
> > > I'm not sure what pure numbers are, but this may work in most cases.
> > >
> > > But it does assume that you're not using format|Conditional formatting for
> > > anything else.
> > >
> > > Select your range (I used A1:x99).
> > > With the activecell A1, use
> > > Format|Conditional formatting
> > > formula is: =AND(ISNUMBER(-A1),ISTEXT(A1))
> > > and give it a nice shade.
> > >
> > > Be aware that these will look like they can be numbers to excel:
> > > '1E3
> > > 'January 1, 2007
> > > '00:12:30
> > >
> > > 1E3 = 1*10^3 = 1000
> > > and dates and times are numbers to excel.
> > >
> > > swordsman wrote:
> > > >
> > > > Dear All,
> > > >
> > > > in a world full of bugs...
> > > > and in worksheets programmed to function as required...
> > > >
> > > > Can someone please avail a code/macro that can highlight a cell<s> which
> > > > contains pure numbers yet are formatted as "Text".
> > > >
> > > > I need to assure that even when there comes a bug to change the cell from
> > > > any formatted number into a text, i can still review easily and verify the
> > > > worksheet to assure integrity on my logical-numeric based- formulas.
> > > >
> > > > TIA
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
formatted to place dashes within numbers formatted as text Jon Microsoft Excel Misc 1 10th Aug 2010 04:01 PM
Problem with retaining numbers formatted as text after code runs needhelp Microsoft Excel Programming 4 31st Jul 2009 08:06 AM
Converting numbers formatted as text to numbers =?Utf-8?B?QmlsbA==?= Microsoft Excel Misc 1 19th Jul 2005 07:10 PM
import numbers as pure text Martin Lord Microsoft Access 3 19th Oct 2004 10:04 PM
Numbers formatted as text Biff Microsoft Excel Worksheet Functions 2 11th Jul 2003 04:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:27 AM.