ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formatting problem (https://www.excelbanter.com/excel-programming/420821-formatting-problem.html)

Marc[_26_]

Formatting problem
 
In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with aligning
right side
Then I format the entire column as text, after that all values are left
aligned
Then I entered a new value in to the column, it stores with green colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help



Mike H

Formatting problem
 
Marc,

This is Excel telling you that you have numbers stored as text. To get rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with aligning
right side
Then I format the entire column as text, after that all values are left
aligned
Then I entered a new value in to the column, it stores with green colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help




Marc[_26_]

Formatting problem
 
Thanks Mike
But the problem is already there


"Mike H" wrote in message
...
Marc,

This is Excel telling you that you have numbers stored as text. To get rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with aligning
right side
Then I format the entire column as text, after that all values are left
aligned
Then I entered a new value in to the column, it stores with green colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help






Gary''s Student

Formatting problem
 
To fix existing cells, selec them and run:

Sub marc()
For Each r In Selection
With r
.NumberFormat = "General"
.Value = .Value
End With
Next
End Sub

--
Gary''s Student - gsnu200817


"Marc" wrote:

Thanks Mike
But the problem is already there


"Mike H" wrote in message
...
Marc,

This is Excel telling you that you have numbers stored as text. To get rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with aligning
right side
Then I format the entire column as text, after that all values are left
aligned
Then I entered a new value in to the column, it stores with green colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help







Marc[_26_]

Formatting problem
 
Thanks Gary
But my entire column is formatted as Text
According to your code it is formatted in to General
I want to keep the column in Text format and make every cell value in to
text


"Gary''s Student" wrote in message
...
To fix existing cells, selec them and run:

Sub marc()
For Each r In Selection
With r
.NumberFormat = "General"
.Value = .Value
End With
Next
End Sub

--
Gary''s Student - gsnu200817


"Marc" wrote:

Thanks Mike
But the problem is already there


"Mike H" wrote in message
...
Marc,

This is Excel telling you that you have numbers stored as text. To get
rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with
aligning
right side
Then I format the entire column as text, after that all values are
left
aligned
Then I entered a new value in to the column, it stores with green
colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help









Billy Liddel

Formatting problem
 
When you select a cell with a green arrow you can use the mouse to highlight
a dropdown box. Among the options are Ignore this error (numbers stored as
text). When you click ignore the arrows will disapear. save the file and when
you reopen there will be no more error messages.

Peter Atherton

"Marc" wrote:

Thanks Gary
But my entire column is formatted as Text
According to your code it is formatted in to General
I want to keep the column in Text format and make every cell value in to
text


"Gary''s Student" wrote in message
...
To fix existing cells, selec them and run:

Sub marc()
For Each r In Selection
With r
.NumberFormat = "General"
.Value = .Value
End With
Next
End Sub

--
Gary''s Student - gsnu200817


"Marc" wrote:

Thanks Mike
But the problem is already there


"Mike H" wrote in message
...
Marc,

This is Excel telling you that you have numbers stored as text. To get
rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with
aligning
right side
Then I format the entire column as text, after that all values are
left
aligned
Then I entered a new value in to the column, it stores with green
colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help










Gary''s Student

Formatting problem
 
A one line change!

Sub marc()
For Each r In Selection
With r
.NumberFormat = "@"
.Value = .Value
End With
Next
End Sub
--
Gary''s Student - gsnu2007k


"Marc" wrote:

Thanks Gary
But my entire column is formatted as Text
According to your code it is formatted in to General
I want to keep the column in Text format and make every cell value in to
text


"Gary''s Student" wrote in message
...
To fix existing cells, selec them and run:

Sub marc()
For Each r In Selection
With r
.NumberFormat = "General"
.Value = .Value
End With
Next
End Sub

--
Gary''s Student - gsnu200817


"Marc" wrote:

Thanks Mike
But the problem is already there


"Mike H" wrote in message
...
Marc,

This is Excel telling you that you have numbers stored as text. To get
rid
of the green triangle:-

Tools|Options - Error Checking tab - Un-check 'numbers stored as text'

Mike

"Marc" wrote:

In my excel sheet there is a General formatted column
When entering numbers in to the column it stores as numbers with
aligning
right side
Then I format the entire column as text, after that all values are
left
aligned
Then I entered a new value in to the column, it stores with green
colour
hyphen
Previously entered values are not like that. If I edit the previously
entered value then that value also stores with green colour hyphen.
What is the reason for this and how to avoid this
Please Help











All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com