Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


AncestralGeek

91 posts

Master Geek

Lifetime subscriber

#61487 17-May-2010 20:08
Send private message

Is there another way to add a single quote to the contents of a cell other than by directly editing the cell or using the following formula ="'"&B2 where the value of B2 is 123456. The result of the formula is different from directly editing the cell in some way as the .xls (Excel 95 format) file can not be used as a source file for importing. Have used paste special to remove the formula but it make no difference.

Create new topic
alikat
390 posts

Ultimate Geek

Trusted

  #331047 17-May-2010 20:29
Send private message

Not sure what you're trying to achieve there, but if you're wanting to quote the contents of that cell then why not just =B2

Or paste special 'values' ?

 
 
 

Free kids accounts - trade shares and funds (NZ, US) with Sharesies (affiliate link).
DS248
1659 posts

Uber Geek

Lifetime subscriber

  #331081 17-May-2010 21:27
Send private message

If you simply want to convert a numerical value to text, use:

=TEXT(B2,"@")

Or replace "@" by your preferred format - look up TEXT function in Help or Google.

rvangelder
352 posts

Ultimate Geek


  #331089 17-May-2010 21:41
Send private message

AncestralGeek: Is there another way to add a single quote to the contents of a cell other than by directly editing the cell or using the following formula ="'"&B2 where the value of B2 is 123456. The result of the formula is different from directly editing the cell in some way as the .xls (Excel 95 format) file can not be used as a source file for importing. Have used paste special to remove the formula but it make no difference.


If you edit a cell, and start the content with a single quote, then it tells Excel that what follows the single quote should be treated as text.
For example, when typing a phone number, you could type
'091234567
and Excel would treat it as text instead of 91 million.

You could type two single quotes instead.
eg ''123456




AncestralGeek

91 posts

Master Geek

Lifetime subscriber

  #332010 19-May-2010 22:53
Send private message

Thanks people for the answers. The excel file is used to transfer data between two legacy applications. The first column in the spreadsheet is titled Invoice Number and when the file is created by exporting data the values are numeric. Unfortunately the application that imports the file expects the value to be Text. It is only when the single quote is present in the cell that the import will work.

The information in rvaneldel reply gave me an idea and a bit of VBA code later I now no longer have to edit each cell. Just why the methods suggested in the other reply's, plus my own attempts, do not work I have no idea.

Anyway thanks again for your help.

rvangelder
352 posts

Ultimate Geek


  #332087 20-May-2010 09:14
Send private message

You should format text columns as text.
That is, highlight your cells, then from the Format menu select Cells..., then from the Number tab select Text


Create new topic





News and reviews »

Samsung Announces Galaxy AI
Posted 28-Nov-2023 14:48


Epson Launches EH-LS650 Ultra Short Throw Smart Streaming Laser Projector
Posted 28-Nov-2023 14:38


Fitbit Charge 6 Review 
Posted 27-Nov-2023 16:21


Cisco Launches New Research Highlighting Gap in Preparedness for AI
Posted 23-Nov-2023 15:50


Seagate Takes Block Storage System to New Heights Reaching 2.5 PB
Posted 23-Nov-2023 15:45


Seagate Nytro 4350 NVMe SSD Delivers Consistent Application Performance and High QoS to Data Centers
Posted 23-Nov-2023 15:38


Amazon Fire TV Stick 4k Max (2nd Generation) Review
Posted 14-Nov-2023 16:17


Over half of New Zealand adults surveyed concerned about AI shopping scams
Posted 3-Nov-2023 10:42


Super Mario Bros. Wonder Launches on Nintendo Switch
Posted 24-Oct-2023 10:56


Google Releases Nest WiFi Pro in New Zealand
Posted 24-Oct-2023 10:18


Amazon Introduces All-New Echo Pop in New Zealand
Posted 23-Oct-2023 19:49


HyperX Unveils Their First Webcam and Audio Mixer Plus
Posted 20-Oct-2023 11:47


Seagate Introduces Exos 24TB Hard Drives for Hyperscalers and Enterprise Data Centres
Posted 20-Oct-2023 11:43


Dyson Zone Noise-Cancelling Headphones Comes to New Zealand
Posted 20-Oct-2023 11:33


The OPPO Find N3 Launches Globally Available in New Zealand Mid-November
Posted 20-Oct-2023 11:06









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.







NordVPN