ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Numbers left-aligned in a cell (https://www.excelbanter.com/new-users-excel/114010-numbers-left-aligned-cell.html)

Epinn

Numbers left-aligned in a cell
 
I can enter a number as text by

(1) formatting the cell as text
or
(2) leaving the format as general but keying in a single quote with the number e.g. '76.

Either way, the number will be left-aligned with a green triangle i.e. if I invoke error checking. If I untick error checking and don't notice the left alignment, the single quote should alert me that the number is in text format, right?

Do you see another difference between (1) and (2) especially in terms of application of the number (in text format)?

Thanks.

Epinn


JLatham

Numbers left-aligned in a cell
 
You aren't going to see the single quote except when you have the cell
selected.

Since there may be possibility of someone choosing (either intentionally or
accidentally) left alignment for the cell, even its position/alignment isn't
a sure bet as a clue.

If you're going 'public' with it, probably best to format the cell as Text
so that the end user won't have to deal with remembering to enter number with
' in front of it?

"Epinn" wrote:

I can enter a number as text by

(1) formatting the cell as text
or
(2) leaving the format as general but keying in a single quote with the number e.g. '76.

Either way, the number will be left-aligned with a green triangle i.e. if I invoke error checking. If I untick error checking and don't notice the left alignment, the single quote should alert me that the number is in text format, right?

Do you see another difference between (1) and (2) especially in terms of application of the number (in text format)?

Thanks.

Epinn



Epinn

Numbers left-aligned in a cell
 
Thank you.

......possibility of someone choosing (either intentionally or

accidentally) left alignment for the cell......

Good point.

Epinn

"JLatham" <HelpFrom @ Jlathamsite.com.(removethis) wrote in message ...
You aren't going to see the single quote except when you have the cell
selected.

Since there may be possibility of someone choosing (either intentionally or
accidentally) left alignment for the cell, even its position/alignment isn't
a sure bet as a clue.

If you're going 'public' with it, probably best to format the cell as Text
so that the end user won't have to deal with remembering to enter number with
' in front of it?

"Epinn" wrote:

I can enter a number as text by

(1) formatting the cell as text
or
(2) leaving the format as general but keying in a single quote with the number e.g. '76.

Either way, the number will be left-aligned with a green triangle i.e. if I invoke error checking. If I untick error checking and don't notice the left alignment, the single quote should alert me that the number is in text format, right?

Do you see another difference between (1) and (2) especially in terms of application of the number (in text format)?

Thanks.

Epinn





Pete_UK

Numbers left-aligned in a cell
 
You can use the alignment as a quick way to see if you have real
numbers or text values that look like numbers. For example, say you
have imported a column of dates: set the alignment for the column to
general and widen the column considerably. If the dates are "real"
dates then they will appear on the right of the column, but if they are
text values they will appear on the left, and the same applies for
other numbers which may really be text.

Hope this helps.

Pete

Epinn wrote:
Thank you.

......possibility of someone choosing (either intentionally or

accidentally) left alignment for the cell......

Good point.

Epinn

"JLatham" <HelpFrom @ Jlathamsite.com.(removethis) wrote in message ...
You aren't going to see the single quote except when you have the cell
selected.

Since there may be possibility of someone choosing (either intentionally or
accidentally) left alignment for the cell, even its position/alignment isn't
a sure bet as a clue.

If you're going 'public' with it, probably best to format the cell as Text
so that the end user won't have to deal with remembering to enter number with
' in front of it?

"Epinn" wrote:

I can enter a number as text by

(1) formatting the cell as text
or
(2) leaving the format as general but keying in a single quote with the number e.g. '76.

Either way, the number will be left-aligned with a green triangle i.e. if I invoke error checking. If I untick error checking and don't notice the left alignment, the single quote should alert me that the number is in text format, right?

Do you see another difference between (1) and (2) especially in terms of application of the number (in text format)?

Thanks.

Epinn




Epinn

Numbers left-aligned in a cell
 
Thanks for your post and I always love little tricks and shortcuts.

The first time I read your post and caught the word "general," I was fixated on formatcellnumbergeneral and I scratched my head. Then, I reread and realized you might mean formatcellalignmenthorizontalgeneral. Any true numbers that are left aligned will be easily revealed when I do formatcellalignment because under horizontal it shows "left (indent)." I'll remember this trick.

It is solid proof to use ISTEXT or ISNUMBER, right?

Epinn

"Pete_UK" wrote in message ups.com...
You can use the alignment as a quick way to see if you have real
numbers or text values that look like numbers. For example, say you
have imported a column of dates: set the alignment for the column to
general and widen the column considerably. If the dates are "real"
dates then they will appear on the right of the column, but if they are
text values they will appear on the left, and the same applies for
other numbers which may really be text.

Hope this helps.

Pete

Epinn wrote:
Thank you.

......possibility of someone choosing (either intentionally or

accidentally) left alignment for the cell......

Good point.

Epinn

"JLatham" <HelpFrom @ Jlathamsite.com.(removethis) wrote in message ...
You aren't going to see the single quote except when you have the cell
selected.

Since there may be possibility of someone choosing (either intentionally or
accidentally) left alignment for the cell, even its position/alignment isn't
a sure bet as a clue.

If you're going 'public' with it, probably best to format the cell as Text
so that the end user won't have to deal with remembering to enter number with
' in front of it?

"Epinn" wrote:

I can enter a number as text by

(1) formatting the cell as text
or
(2) leaving the format as general but keying in a single quote with the number e.g. '76.

Either way, the number will be left-aligned with a green triangle i.e. if I invoke error checking. If I untick error checking and don't notice the left alignment, the single quote should alert me that the number is in text format, right?

Do you see another difference between (1) and (2) especially in terms of application of the number (in text format)?

Thanks.

Epinn






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

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