Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default How do I add an apostrophy to a range of existing cells?

I need to be able to add an apostrophy in front of numbers in a range of
existing cells without having to type it into each cell. I am trying to set
up a spreadsheet that I can import into accpac and I need to have the
apostrophy there.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default How do I add an apostrophy to a range of existing cells?

Formatting the cells as Text doesn't work for your import?

--
Rick (MVP - Excel)


"stuck" wrote in message
...
I need to be able to add an apostrophy in front of numbers in a range of
existing cells without having to type it into each cell. I am trying to
set
up a spreadsheet that I can import into accpac and I need to have the
apostrophy there.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How do I add an apostrophy to a range of existing cells?

Select the cells, and run this macro:

Sub MakeText()
Dim myCell As Range

With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.EnableEvents = False
End With

For Each myCell In Selection
myCell.Value = "'" & myCell.Value
Next myCell

With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
.EnableEvents = True
End With
End Sub



OR, use a set of formulas:

="'" & A1

then copy to match your set of numbers, then copy and paste special values.


HTH,
Bernie
MS Excel MVP


"stuck" wrote in message
...
I need to be able to add an apostrophy in front of numbers in a range of
existing cells without having to type it into each cell. I am trying to set
up a spreadsheet that I can import into accpac and I need to have the
apostrophy there.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default How do I add an apostrophy to a range of existing cells?

"stuck" wrote:
I need to be able to add an apostrophy in front of numbers in a range of
existing cells without having to type it into each cell. I am trying to
set
up a spreadsheet that I can import into accpac and I need to have the
apostrophy there.


I wonder if the apostrophe prefix is sufficient, much less necessary.

How do you save the worksheet so that it can be imported into ACCPAC?

If you save the worksheet as a ".csv" file, note that apostrophe prefixes
are not recorded in the CSV file. The CSV file makes no distinction between
cells with numbers and cells with numeric text, even if you format the cell
as Text.

However, numeric text within double-quotes (literally "123") is recorded in
the CSV file in a distinctive manner.

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
how do I extend an existing pivot table's range Chris Smith Excel Discussion (Misc queries) 4 June 15th 07 06:02 PM
Increasing the Source Data range for an existing Pivot Table Shams Excel Worksheet Functions 2 October 10th 06 05:22 PM
how can I clear an apostrophy in front of number in excel KCESS New Users to Excel 4 September 4th 06 10:39 AM
How can I put an apostrophy next to a number on my Excel workshee. Rabbit Excel Discussion (Misc queries) 5 August 26th 06 08:22 PM
CELL RANGE SELECTION ON EXISTING PIVOT TABLE MitchP Excel Worksheet Functions 3 August 8th 05 08:45 PM


All times are GMT +1. The time now is 10:39 PM.

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"