LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Write a number in a cell as text

Line 1: Cells(1,1)=ticker

enters the value of ticker in cell A1.

If ticker = "1" AND format of A1 is General

line 1 results in A1=1 as a number NOT as text, even though ticker is a string

Is there a way to force the writing of ticker in A1 as text, WITHOUT
CHANGING THE FORMAT OF A1 TO TEXT?

This is quite relevant for me because the VLOOKUP function won't work
otherwise and the spreadsheet where A1 is located cannot be modified.

I have tried CStr() but makes no difference. In a General format cell Excel
changes a numeric string to a number.

Thanks,

Antonio
 
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 can I write a number in an Excel cell with zero at the begin M. A. Sekendar Excel Discussion (Misc queries) 1 April 25th 10 09:58 AM
how to write 1234567890123456789 into a cell with number format Anila Excel Discussion (Misc queries) 3 February 13th 09 03:27 PM
Write a number in a cell and another number comes out in another c max Excel Worksheet Functions 2 November 19th 08 06:35 PM
How to write/Remove some text (Like Page Number/ Confidential) @ s Raj Excel Discussion (Misc queries) 3 August 23rd 07 04:16 PM
how do write the amount of a number in text? Alejandro-Venezuela Excel Worksheet Functions 1 January 4th 06 08:27 AM


All times are GMT +1. The time now is 10:41 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"