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
403 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' ?



DS248
1697 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 »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01









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.