Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Always have apostrophe

In Excel2000, is there a way to force an apostrophe in front of any
characters inputted into a cell. For example, if someone inputs 100
the cell will really be '100. I don't want to just use Format-Text, I
want an apostrophe added to anything input.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default Always have apostrophe

Snax,

First of all, if you want the apostrophe to shoe, you'd need to put two apostrophes, since
it's the first character, because Excel uses the first to coerce it to text. It doesn't
show.

If the apostrophe is to coerce it to text (you don't want it to show), you could first
format the cells for text (Format - Cells - Number tab, Text.

I think he only way to have an apostrophe(s) automatically inserted is with a macro. We can
write you one if you're interested.
--
Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"snax500" wrote in message
oups.com...
In Excel2000, is there a way to force an apostrophe in front of any
characters inputted into a cell. For example, if someone inputs 100
the cell will really be '100. I don't want to just use Format-Text, I
want an apostrophe added to anything input.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Always have apostrophe

All that people would be inputting in is numbers. I just want there to
be a leading apostrophe on the numbers they input. I don't want to use
format-text because I am using a macro where the data has to be
excactly the same with an apostrophe. Is there a way to data validate
the input?

Thanks


On Jun 22, 10:56 am, "Earl Kiosterud" wrote:
Snax,

First of all, if you want theapostropheto shoe, you'd need to put two apostrophes, since
it's the first character, because Excel uses the first to coerce it to text. It doesn't
show.

If theapostropheis to coerce it to text (you don't want it to show), you could first
format the cells for text (Format - Cells - Number tab, Text.

I think he only way to have anapostrophe(s) automatically inserted is with a macro. We can
write you one if you're interested.
--
Earl Kiosterudwww.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"snax500" wrote in message

oups.com...



In Excel2000, is there a way to force anapostrophein front of any
characters inputted into a cell. For example, if someone inputs 100
the cell will really be '100. I don't want to just use Format-Text, I
want anapostropheadded to anything input.


Thanks- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Always have apostrophe

snax,

I am using a macro where the data has to be
excactly the same with an apostrophe.


I think your best bet is to change your macro to accept the number without the quote.

The problem is that even if you enter '876 into cell A1
=LEFT(A1,1)
will return 8 and not ' so it is impossible to use worksheet functions to 'see' the single quote.


HTH,
Bernie
MS Excel MVP


"snax500" wrote in message
oups.com...
All that people would be inputting in is numbers. I just want there to
be a leading apostrophe on the numbers they input. I don't want to use
format-text because I am using a macro where the data has to be
excactly the same with an apostrophe. Is there a way to data validate
the input?

Thanks


On Jun 22, 10:56 am, "Earl Kiosterud" wrote:
Snax,

First of all, if you want theapostropheto shoe, you'd need to put two apostrophes, since
it's the first character, because Excel uses the first to coerce it to text. It doesn't
show.

If theapostropheis to coerce it to text (you don't want it to show), you could first
format the cells for text (Format - Cells - Number tab, Text.

I think he only way to have anapostrophe(s) automatically inserted is with a macro. We can
write you one if you're interested.
--
Earl Kiosterudwww.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"snax500"
wrote in message

oups.com...



In Excel2000, is there a way to force anapostrophein front of any
characters inputted into a cell. For example, if someone inputs 100
the cell will really be '100. I don't want to just use Format-Text, I
want anapostropheadded to anything input.


Thanks- Hide quoted text -


- Show quoted text -





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Always have apostrophe

I am using Application.Match in my macro in a large range. I think it
is quicker than using a loop through a range.



On Jun 22, 11:51 am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
snax,

I am using a macro where the data has to be
excactly the same with anapostrophe.


I think your best bet is to change your macro to accept the number without the quote.

The problem is that even if you enter '876 into cell A1
=LEFT(A1,1)
will return 8 and not ' so it is impossible to use worksheet functions to 'see' the single quote.

HTH,
Bernie
MS Excel MVP

"snax500" wrote in message

oups.com...



All that people would be inputting in is numbers. I just want there to
be a leadingapostropheon the numbers they input. I don't want to use
format-text because I am using a macro where the data has to be
excactly the same with anapostrophe. Is there a way to data validate
the input?


Thanks


On Jun 22, 10:56 am, "Earl Kiosterud" wrote:
Snax,


First of all, if you want theapostropheto shoe, you'd need to put two apostrophes, since
it's the first character, because Excel uses the first to coerce it to text. It doesn't
show.


If theapostropheis to coerce it to text (you don't want it to show), you could first
format the cells for text (Format - Cells - Number tab, Text.


I think he only way to have anapostrophe(s) automatically inserted is with a macro. We can
write you one if you're interested.
--
Earl Kiosterudwww.smokeylake.com


Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------"sna*x500"
wrote in message


groups.com...


In Excel2000, is there a way to force anapostrophein front of any
characters inputted into a cell. For example, if someone inputs 100
the cell will really be '100. I don't want to just use Format-Text, I
want anapostropheadded to anything input.


Thanks- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Always have apostrophe

Try this:
Custom Format

"'"0


"snax500" wrote:

In Excel2000, is there a way to force an apostrophe in front of any
characters inputted into a cell. For example, if someone inputs 100
the cell will really be '100. I don't want to just use Format-Text, I
want an apostrophe added to anything input.

Thanks


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
Apostrophe Mayhew [email protected] Excel Worksheet Functions 1 January 1st 07 06:35 PM
Apostrophe In Every Cell astrange Excel Discussion (Misc queries) 4 April 7th 06 04:59 PM
Remove apostrophe Pat Excel Worksheet Functions 2 September 11th 05 06:27 PM
Delete apostrophe Susana Conklin via OfficeKB.com Excel Discussion (Misc queries) 2 December 3rd 04 08:15 PM
Add apostrophe Tony Wainwright Excel Worksheet Functions 4 October 29th 04 01:50 PM


All times are GMT +1. The time now is 10:19 AM.

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"