Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how do I create a formula

can anybody help me???

I'm trying to creat a formula In excel for a spread sheet that i'm creating.
ok here we go what I'm trying to do is that if I input the number 1 in a cell
i want the next cell to automatically inputs of what number 1 repersents .
Example In C5 I enter the number 1, in C6 autmaically inputs Tree so the
formual should represents if 1=tree. Thats were im getting stuck I do not
know how to create this formula.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default how do I create a formula

Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "5:5" '<== change to suit
Dim sh As Worksheet

If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target

Select Case .Value

Case 1: .Offset(1, 0).Value = "tree"
Case 2: .Offset(1, 0).Value = "hedge"
'etc
End Select
End With
End If

End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--
__________________________________
HTH

Bob

"Harold" <Harold @discussions.microsoft.com wrote in message
...
can anybody help me???

I'm trying to creat a formula In excel for a spread sheet that i'm
creating.
ok here we go what I'm trying to do is that if I input the number 1 in a
cell
i want the next cell to automatically inputs of what number 1 repersents .
Example In C5 I enter the number 1, in C6 autmaically inputs Tree so the
formual should represents if 1=tree. Thats were im getting stuck I do not
know how to create this formula.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 213
Default how do I create a formula

I'm trying to creat a formula In excel for a spread sheet that i'm
creating. ok here we go what I'm trying to do is that if I input the
number 1 in a cell i want the next cell to automatically inputs of
what number 1 repersents . Example In C5 I enter the number 1, in C6
autmaically inputs Tree so the formual should represents if 1=tree.


One way to get started:
=CHOOSE(C5,"tree","rock","paper","scissors")
This assumes that the numbers you mean are 1, 2, 3, etc.
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
i'd like to create a formula NED Excel Discussion (Misc queries) 1 August 9th 06 04:12 PM
How do I create a formula by percentage within a formula? Miss Texas Excel Worksheet Functions 1 March 27th 06 04:51 AM
need to create a formula to create a timesheet but haven't a clue AHurd Excel Discussion (Misc queries) 7 August 22nd 05 12:04 PM
How do I create a formula NyShawn Excel Worksheet Functions 1 July 25th 05 05:49 PM
Create formula Leo Excel Worksheet Functions 2 January 19th 05 10:16 PM


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