You can make a User defined function that returns the note for a
numeric value.
In a standard module paste this
Function Nt(Score As Variant) As String
Select Case Score
Case Is = 60
Nt = "C"
End Select
End Function
This only works for a value of 60. Yo will have to write the other 126
cases and the corresponding values. Example
Function Nt(Score As Variant) As String
Select Case Score
Case Is = 60
Nt = "C"
Case is = 62
Nt = "D"
End Select
End Function
All of the cases must be between the Select Case Statement and the End
Select.
HTH
(E-Mail Removed) wrote:
> I'm trying to create a complex set of variables in an excel
> spreadsheet. Since I am not a strong programmer, the best way to do
> this is to basically use a very complex if/then argument. However,
> excel only supports 7 nested conditionals.
>
> Basically, what i want to do is "teach" excel the notes of a music
> keyboard in terms of number.
>
> Ex 60 = C, 61 = Db, 62 = D etc etc...and so on for all 127 notes of a
> midi keyboard.
>
> In other words, like an array or list that I can do calculations with.
>
> Any advice?