ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format text to numbers (https://www.excelbanter.com/excel-discussion-misc-queries/64190-format-text-numbers.html)

Jamesy

Format text to numbers
 
Hi All,

Just a quick question guys, I've used a formila before that converts text to
a unique number, for example......

H464 - now this might bring back 123456

Any ideas?

Thanks,
James.

Dave O

Format text to numbers
 
The formula should work both ways: if you can convert text to a unique
number, then you should be able to reverse it to convert that unique
number to text. What is your algorithm?


Jamesy

Format text to numbers
 
Hi Dave,

Meaning I can't remember how to transform text to number, I'm 100% sure
there is a function that does this but can't remember!

Thanks,
James.

"Dave O" wrote:

The formula should work both ways: if you can convert text to a unique
number, then you should be able to reverse it to convert that unique
number to text. What is your algorithm?



Dave O

Format text to numbers
 
A standard way to convert text to a number is, for example:
=CODE("A") which returns the ASCII code number for this character, 65

You can convert an ASCII number to text like this:
=ASC(65) which returns A

You can find an ASCII table he
http://www.neurophys.wisc.edu/www/comp/docs/ascii.html

Does this help? Please post a working example.



All times are GMT +1. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com