T
Tonso
Using XL2003, I am using the indirect function to select a named range
to display in a data validation list. At 1st it worked well, but i had
to make a change in a refernce and now i cannot get it to work. this
is what is have
in cell A1, a name. could be Tom. Sally, etc. No problem here.
in cell A3, I have a letter, could be A, B, C, etc. No problem here.
The problem is in A2. At 1st I had 1 or 2 letters, such as H, or TH.
Using the Indirect function to refernce each cell worked fine. But,
now A2 could be something like "H Go to Town", or "K Stay home", or
"TP Wash Car". I want to reference, in A2, just the 1st 1 or 2
letters. If A2 begins with "T", I need to reference the 1st 2 letters.
Otherwise, I need to reference the 1st letter only.
I tried the following:
Indirect(a1&if(a2="T",left(a2,2),left(a2,1))&a3). It doesnt work. What
am I doing wrong?
Thanks,
Tonso
to display in a data validation list. At 1st it worked well, but i had
to make a change in a refernce and now i cannot get it to work. this
is what is have
in cell A1, a name. could be Tom. Sally, etc. No problem here.
in cell A3, I have a letter, could be A, B, C, etc. No problem here.
The problem is in A2. At 1st I had 1 or 2 letters, such as H, or TH.
Using the Indirect function to refernce each cell worked fine. But,
now A2 could be something like "H Go to Town", or "K Stay home", or
"TP Wash Car". I want to reference, in A2, just the 1st 1 or 2
letters. If A2 begins with "T", I need to reference the 1st 2 letters.
Otherwise, I need to reference the 1st letter only.
I tried the following:
Indirect(a1&if(a2="T",left(a2,2),left(a2,1))&a3). It doesnt work. What
am I doing wrong?
Thanks,
Tonso