Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#315024 - 14/10/2008 20:41 Can I substitue ascii codes for certain letters within an Excel cell?
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
I want to create a list using Excel in which I can substitute certain letters for the normal ones in the middle of words -- like adding accent marks or the tilde over the letter n to get the "nya" sound.

Can this be done? It won't be useful if it is a long, involved process. I'm hoping for something simple like maybe holding the Alt key down while I type an ascii code or something. Excel's help files don't offer much hope.

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#315026 - 14/10/2008 20:56 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
The standard Windows alt-ascii code trick works for me when I'm typing into an excel cell. Is that not working for you?


Remember, it must be four digits, and it must be on the numeric keypad with numlock on. For example, to type the last letter in "resumé" I have to type "resum" then hold down the left ALT key, reach over to the numeric keypad, type 0 2 3 3 then release the left ALT key.

I can also use the "Insert/Symbol" feature built into Excel as well, which is even easier and doesn't require me to know the ascii code.
_________________________
Tony Fabris

Top
#315034 - 14/10/2008 22:25 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tfabris]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Quote:
For example, to type the last letter in "resumé" I have to type "resum" then hold down the left ALT key, reach over to the numeric keypad, type 0 2 3 3 then release the left ALT key.


You're kidding me! I just made up that alt-ascii# thing out of my head because it seemed like it would be a reasonable way to do it. I didn't actually try it!!

Hey! It works. Either I'm really smart for thinking it would be with the Alt key, or really dumb for not trying it in the first place. (I didn't guess that it would have to have the leading zero, though...)

Thanks, Tony. I owe you one. One? More like a 100 for all the help you've given me over the years.

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#315035 - 15/10/2008 00:30 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
gbeer
carpal tunnel

Registered: 17/12/2000
Posts: 2665
Loc: Manteca, California
That little trick has been around since dos days.

But I have to agree with Tony, the insert/symbol thing works easier.
_________________________
Glenn

Top
#315036 - 15/10/2008 00:32 Re: Can I substitue ascii codes for certain letters within an Excel ce [Re: tanstaafl.]
lectric
pooh-bah

Registered: 20/01/2002
Posts: 2085
Loc: New Orleans, LA
And Charmap (Start → Run → charmap) is a great way to figure out what the ascii codes are for a given odd text. There are also characters in there you can't get to with just the alt-0000 combo.


Top
#315053 - 15/10/2008 12:19 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
You might also try AllChars or something similar. It allows you to press a particular hotkey and then two more keys to generate an accented (or otherwise not-on-your-keyboard) character. For example, if you press the hotkey, then 'n', then '~', it will generate 'ñ'. It has some limitations, but it should do what you want, and the keystrokes are a little easier to remember than ALT-0223 or whatever.
_________________________
Bitt Faulk

Top
#315056 - 15/10/2008 14:16 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: wfaulk]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Quote:
You might also try AllChars or something similar.


Doh! Looking at their documentation made me realize I am using a Gateway 2000 fully programmable keyboard. I can program my a-e-i-o-u-y and n keys to have the desired effects just by making macros for alt-a, alt-e etc. to substitute the alt-0225 alt-0233 etc. ascii codes.

There's still one problem unsolved, though. The code for the upside-down question mark requires a code of alt-00BF, and the "F" instead of sending the ascii code opens up the File menu (i.e., alt-F) in Excel. (I tried to put that in here and the "B" part of it opened up a bookmark menu!)

Ah! I know a workaround. Use the Insert Symbol to get that upside down question mark into the Windows clipboard and paste it whenever I need it. That'll work until I forget and stick something else in the clipboard, but if I have it saved to an unused cell somewhere on the spreadsheet it'll be easy enough to clip again. ¿Will that work? Yep! Now, what is the code for that upside down exclamation point? Got it. á é í ó ú ý ñ ¿ ¡ Ready to go now. Thank you.

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#315057 - 15/10/2008 14:22 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Originally Posted By: tanstaafl.
There's still one problem unsolved, though. The code for the upside-down question mark requires a code of alt-00BF,


BF is the hexadecimal version of the decimal number 191.

Try Alt+ 0 1 9 1

Remember that in order for the Alt+code trick to work, it must be on the NUMERIC KEYPAD. So you can't do hexadecimal numbers on the numeric keypad, so you have to do the decimal version.

_________________________
Tony Fabris

Top
#315058 - 15/10/2008 14:25 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Originally Posted By: tanstaafl.
The code for the upside-down question mark requires a code of alt-00BF

In decimal, not hex. Alt-0191.

Peter

Top
#315059 - 15/10/2008 14:31 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: peter]
siberia37
old hand

Registered: 09/01/2002
Posts: 702
Loc: Tacoma,WA
One of my favortie tricks is to put Alt-0XXX codes in my Windows password. It works to make your password complex and pretty much uncrackable. There is something fun about typing in Alt-0XXX when you are typing your password.

Top
#315060 - 15/10/2008 14:38 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: peter]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Quote:
In decimal, not hex. Alt-0191.


Darn! I had just figured that out and was hoping to get back in here and edit the post before anybody noticed! smile

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#315061 - 15/10/2008 14:45 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5549
Loc: Ajijic, Mexico
Quote:
One of my favortie tricks is to put Alt-0XXX codes in my Windows password. It works to make your password complex and pretty much uncrackable.


Until you get to a site or program that defines password conventions (like USPS Click-n-Ship not allowing the same letter three times in succession, and others that only allow a-z and 0-9 characters.) I generally avoid those places whenever possible as my usual login name and password frequently violate one or both of those conventions.

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#315065 - 15/10/2008 16:36 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: tanstaafl.]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I'm still amazed that the ALT-xxx trick is still the easiest way to type those characters on US/UK Windows layouts. é å î ü ø ß. Just typed all those out without having to reference a chart on OS X. They are all Alt-Letter that makes sense in most cases.

Top
#315067 - 15/10/2008 17:08 Re: Can I substitue ascii codes for certain letters within an Excel cell? [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Agreed, the Mac handles that really well.
_________________________
Tony Fabris

Top