format cell

C

crapit

How to set a cell so that when I key in [number] follow by [/] follow by
[number] and display as number - number

I.e key in 3/4, appear as 3 - 4
 
D

Dave Peterson

Not by formatting alone.

You could format the cell as text (not general, not a date)
and use the adjacent cell to return the string the way you want to see it:

=substitute(a1,"/"," - ")

After you do all your data entry, you could hide the original column or even
convert the formula column to values and delete the original column.
How to set a cell so that when I key in [number] follow by [/] follow by
[number] and display as number - number

I.e key in 3/4, appear as 3 - 4
 
N

ND Pard

Close Dave, but the formula is:

=substitute(A1,"-","/")

Good Luck :)



Dave Peterson said:
Not by formatting alone.

You could format the cell as text (not general, not a date)
and use the adjacent cell to return the string the way you want to see it:

=substitute(a1,"/"," - ")

After you do all your data entry, you could hide the original column or even
convert the formula column to values and delete the original column.
How to set a cell so that when I key in [number] follow by [/] follow by
[number] and display as number - number

I.e key in 3/4, appear as 3 - 4
 
G

Gord Dibben

ND Pard

Re-read the original post.


Gord Dibben MS Excel MVP


Close Dave, but the formula is:

=substitute(A1,"-","/")

Good Luck :)



Dave Peterson said:
Not by formatting alone.

You could format the cell as text (not general, not a date)
and use the adjacent cell to return the string the way you want to see it:

=substitute(a1,"/"," - ")

After you do all your data entry, you could hide the original column or even
convert the formula column to values and delete the original column.
How to set a cell so that when I key in [number] follow by [/] follow by
[number] and display as number - number

I.e key in 3/4, appear as 3 - 4
 
C

crapit

How about automatically create space before and after a separator sign?

I.e key in 3/4, appear as 3 / 4
 
L

L. Howard Kittle

See if this works for you.

Format > Cells > Custom
# / #

HTH
Regards,
Howard

crapit said:
How about automatically create space before and after a separator sign?

I.e key in 3/4, appear as 3 / 4

crapit said:
How to set a cell so that when I key in [number] follow by [/] follow by
[number] and display as number - number

I.e key in 3/4, appear as 3 - 4
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top