Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
FC FC is offline
external usenet poster
 
Posts: 130
Default can i type a number for a specific name to appear in the cell?

I got a list of names related to 4 digit number that I memorized. It is
possible to write a formula or anyway that if I write the number in a cell (
ex.123 in A2) instead of the number, the name Luis will appear in that same
cell ( A2). Tx
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default can i type a number for a specific name to appear in the cell?

Either through using AutoCorrect by building a list or by VBA event code.

Would be much easier to use a helper column and a VLOOKUP formula.

Use Data Validation for in-cell drop-down for selecting a number and VLOOKUP
for the filling-in part.

See Debra Dalgleish's site for more on VLOOKUP and Data
Validation lists for entering the choices.

http://www.contextures.on.ca/xlFunctions02.html

http://www.contextures.on.ca/xlDataVal01.html

Note the section on using DV lists from another worksheet by naming the list.


Gord Dibben MS Excel MVP

On Sun, 18 Feb 2007 10:53:02 -0800, FC wrote:

I got a list of names related to 4 digit number that I memorized. It is
possible to write a formula or anyway that if I write the number in a cell (
ex.123 in A2) instead of the number, the name Luis will appear in that same
cell ( A2). Tx


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default can i type a number for a specific name to appear in the cell?

Several ways. Right click sheet tabview codeinsert this. Works for cell
c15 as written.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$C$15" Then
Application.EnableEvents = False
Select Case Target
Case Is = 123: x = "Joe"
Case Is = 345: x = "bill"
Case Else: x = "not here"
End Select
Target.Value = x
Application.EnableEvents = True
End If
End Sub
--
Don Guillett
SalesAid Software

"FC" wrote in message
...
I got a list of names related to 4 digit number that I memorized. It is
possible to write a formula or anyway that if I write the number in a cell
(
ex.123 in A2) instead of the number, the name Luis will appear in that
same
cell ( A2). Tx



Reply
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
Hide a specific number in a cell Rhondarp Excel Discussion (Misc queries) 6 May 26th 06 08:24 PM
The number I type in a cell, e.g. 500, appears at 0.5 - why? Becky Excel Discussion (Misc queries) 4 March 17th 06 12:04 PM
Adding new 'Type' to Format->Number->Time->Type Chip Pearson Excel Discussion (Misc queries) 5 September 26th 05 08:45 PM
Count number of times a specific number is displayed in a cell ran subs Excel Worksheet Functions 1 June 27th 05 05:01 PM
Can Excel add a set percentage to a cell automatically when you type in a number Chris B. Excel Worksheet Functions 3 October 29th 04 07:08 PM


All times are GMT +1. The time now is 06:55 PM.

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"