473,396 Members | 1,927 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

integer to string

Hi There,

I want to convert an integer number to a string equivalent for Excel such
that

0 = A,
1 = B,
26=AA,
27=AB,
255=IV,

Anyone any ideas how to do this?

I have it working for A to Z using:

char c = (char) (column + 65);

But once it gets over Z i need to work out how to put them in double
letters.

Thanks in advance.

Jamie

Jul 28 '06 #1
4 6241

"Jamie Allison" <ja***@jamieallison.co.ukwrote in message
news:Lq******************************@bt.com...
Hi There,

I want to convert an integer number to a string equivalent for Excel such
that
Crosspost, don't multipost:
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

I answered your question on another newsgroup.

- Oliver

Jul 28 '06 #2
On Fri, 28 Jul 2006 14:19:46 GMT, "Oliver Wong" <ow***@castortech.com>
wrote:
>
"Jamie Allison" <ja***@jamieallison.co.ukwrote in message
news:Lq******************************@bt.com...
>Hi There,

I want to convert an integer number to a string equivalent for Excel such
that

Crosspost, don't multipost:
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

"It is considered highly inappropriate to broadcast your message to a
wide selection of newsgroups merely to have more people read it. Note
also that many people automatically ignore articles posted to more
than two or three groups."

Hehehe!! The first sentence almost tempts the reader to do it just
out of spite. The second sentence provides a good argument for doing
exactly what you're hoping to discourage the poster from doing here
(multi-posting rather than crossposting).

I'm not disagreeing with you here Wong, I just find netcopping funny
in general. Makes me giggle and want to piss me self.

Jul 28 '06 #3
"Choder Hongwel" <ch****@monkey.comwrote in message
news:8s********************************@4ax.com...
On Fri, 28 Jul 2006 14:19:46 GMT, "Oliver Wong" <ow***@castortech.com>
wrote:
>>
"Jamie Allison" <ja***@jamieallison.co.ukwrote in message
news:Lq******************************@bt.com.. .
>>Hi There,

I want to convert an integer number to a string equivalent for Excel
such
that

Crosspost, don't multipost:
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html


"It is considered highly inappropriate to broadcast your message to a
wide selection of newsgroups merely to have more people read it. Note
also that many people automatically ignore articles posted to more
than two or three groups."

Hehehe!! The first sentence almost tempts the reader to do it just
out of spite. The second sentence provides a good argument for doing
exactly what you're hoping to discourage the poster from doing here
(multi-posting rather than crossposting).

I'm not disagreeing with you here Wong, I just find netcopping funny
in general. Makes me giggle and want to piss me self.
The page actually makes an appeal to the laziness of the poster:

<quote>
Crossposting is easier than sending separate postings. You don't really need
any other reason.
</quote>

IOW, why should I crosspost instead of multipost? 'Cause it takes less
effort to crosspost.

- Oliver

Jul 28 '06 #4
On Fri, 28 Jul 2006 18:47:26 GMT, "Oliver Wong" <ow***@castortech.com>
wrote:
>"Choder Hongwel" <ch****@monkey.comwrote in message
news:8s********************************@4ax.com.. .
>On Fri, 28 Jul 2006 14:19:46 GMT, "Oliver Wong" <ow***@castortech.com>
wrote:
>>>
"Jamie Allison" <ja***@jamieallison.co.ukwrote in message
news:Lq******************************@bt.com. ..
Hi There,

I want to convert an integer number to a string equivalent for Excel
such
that

Crosspost, don't multipost:
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html


"It is considered highly inappropriate to broadcast your message to a
wide selection of newsgroups merely to have more people read it. Note
also that many people automatically ignore articles posted to more
than two or three groups."

Hehehe!! The first sentence almost tempts the reader to do it just
out of spite. The second sentence provides a good argument for doing
exactly what you're hoping to discourage the poster from doing here
(multi-posting rather than crossposting).

I'm not disagreeing with you here Wong, I just find netcopping funny
in general. Makes me giggle and want to piss me self.

The page actually makes an appeal to the laziness of the poster:
Which in itself is an admirable strategy, but is based in the
assumption that the user not only wants to widen their audience but is
willing to make tradeoffs of effort resultng in a smaller audience.
Jul 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: news.hku.hk | last post by:
could you tell me how can i convet a string to integer?? #include <iostream> #include <string> using namespace std; int main(){ int integer; string buffer("123456789");
7
by: Sashi | last post by:
Two questions: (1) I can pull the text of an XML element as a string just fine using code as such: strSomeString = myXmlDoc.SelectSingleNode("/Element1/Element2/Element3",...
2
by: Jim in Arizona | last post by:
I'm learning form an ASP.NET 1.0 book and I tried out some code that returns this error: Compiler Error Message: BC30311: Value of type 'Integer' cannot be converted to...
5
by: Barry | last post by:
Hello, In VS2003, I tried using an enum and setting it into a field in a datarow. It seems as if the datatype of the field in the row determined what went into the field. If the datatype was...
11
by: nephish | last post by:
Hello there, i need a way to check to see if a certain value can be an integer. I have looked at is int(), but what is comming out is a string that may be an integer. i mean, it will be formatted...
6
by: comp.lang.php | last post by:
I'm involved in a rather nasty debate involving a strange issue (whereby the exasperated tell me to RTFM even after my having done so), where this is insanely possible: print_r(is_int('1'));...
3
by: veeman | last post by:
Can someone please write an example containing one element which value is integer type, and one attribute which value is also integer type: Is it something like this: <SomeAttribute...
1
by: redpayne | last post by:
Okay, I finally got this program to run according to what the book had us build it as. Now prof wants case 2 and case 3 to prompt again for input, check input to see if it is the correct type, then...
1
by: =?Utf-8?B?RG9u?= | last post by:
Hello, I'm creating a web service that will allow people to enter their contact information into a SQL Server table. I get it to work when I enter all of the fields and press the invoke button,...
2
by: robtyketto | last post by:
Greetings, Within my jsp I have HTML code (see below) which accepts input, one of these fields sequence unlike the others is an Integer. <FORM ACTION="wk465682AddFAQ.jsp" METHOD="POST"> Id:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.