D
dkenebre
How do I create the following formula:
1. If C1, D1 and E1 equal 3 numbers in Q1, then T1=H, U1=H, V1=H,
2. If C1, D1 and E1 equal 2 numbers in Q1 and equal 1 number in R1,
then T1=H, U1=H and V1=T,
3. If C1, D1 and E1 equal 2 numbers in Q1 and equal 1 number in S1,
then T1=H, U1=H, and V1=C,
4. If C1, D1 and E1 equal 1 number in Q1 and equal 2 numbers in R1,
then T1=H, U1=T, and V1=T,
5. If C1, D1 and E1 equal 1 number in Q1 and 1 in R1 and 1 in S1, then
T1=H, U1=T, V1=C,
6. If C1, D1 and E1 equal 1 number in Q1 and 2 in S1, then T1=H, U1=C,
V1=C,
7. If C1, D1 and E1 equal 3 numbers in R1, then T1= T, U1=T, V1=T,
8. If C1, D1 and E1 equal 2 numbers in R1 and 1 in S1, then T1= T,
U1=T, V1=C,
9. If C1, D1 and E1 equal 1 number in R1 and 2 in S1, then T1=T, U1=C,
V1=C,
10. If C1, D1 and E1 equal 3 numbers in S1, then T1=C, U1=C, V1=C
There are 10 possible conditions within this formula.
The values in C, D and E are always a single digit number between 0 and
9 in each cell.
The values in Q, R and S are always 2 to 5 multiple digits in each cell
between 0 and 9.
The key is for T1, U1 and V1 to match the single digits in C, D and E
with the digits in column’s Q, R and S, then match that condition with
correct text
Example:
C1=5, D1=2, E1=8
Q1= 0, 8, 4, R1= 5, 7, 1, 9 S1= 6, 3, 2
This example meet condition #5 above (HTC)
Therefore,
answer: T1=H, U1=T and V1=C
I tried to use the following formula, but only works if there is a
single value in the Q1, S1 or R1 cell and I usually have 2 to 5
separate digits between 0 and 9 in each of these cells.
=IF(C8=Q7,"H",IF(C8=R7,"T",IF(C8=S7,"C")))
Then I tried this formula but it doesn’t either, although, I think it’s
close.
=CHOOSE(IF(ISNUMBER(SEARCH(C8,$Q$7)),"H"),IF(ISNUMBER(SEARCH(C8,$R$7)),"T"),IF(ISNUMBER(SEARCH(C8,$S$7)),"C"))
Thanks
1. If C1, D1 and E1 equal 3 numbers in Q1, then T1=H, U1=H, V1=H,
2. If C1, D1 and E1 equal 2 numbers in Q1 and equal 1 number in R1,
then T1=H, U1=H and V1=T,
3. If C1, D1 and E1 equal 2 numbers in Q1 and equal 1 number in S1,
then T1=H, U1=H, and V1=C,
4. If C1, D1 and E1 equal 1 number in Q1 and equal 2 numbers in R1,
then T1=H, U1=T, and V1=T,
5. If C1, D1 and E1 equal 1 number in Q1 and 1 in R1 and 1 in S1, then
T1=H, U1=T, V1=C,
6. If C1, D1 and E1 equal 1 number in Q1 and 2 in S1, then T1=H, U1=C,
V1=C,
7. If C1, D1 and E1 equal 3 numbers in R1, then T1= T, U1=T, V1=T,
8. If C1, D1 and E1 equal 2 numbers in R1 and 1 in S1, then T1= T,
U1=T, V1=C,
9. If C1, D1 and E1 equal 1 number in R1 and 2 in S1, then T1=T, U1=C,
V1=C,
10. If C1, D1 and E1 equal 3 numbers in S1, then T1=C, U1=C, V1=C
There are 10 possible conditions within this formula.
The values in C, D and E are always a single digit number between 0 and
9 in each cell.
The values in Q, R and S are always 2 to 5 multiple digits in each cell
between 0 and 9.
The key is for T1, U1 and V1 to match the single digits in C, D and E
with the digits in column’s Q, R and S, then match that condition with
correct text
Example:
C1=5, D1=2, E1=8
Q1= 0, 8, 4, R1= 5, 7, 1, 9 S1= 6, 3, 2
This example meet condition #5 above (HTC)
Therefore,
answer: T1=H, U1=T and V1=C
I tried to use the following formula, but only works if there is a
single value in the Q1, S1 or R1 cell and I usually have 2 to 5
separate digits between 0 and 9 in each of these cells.
=IF(C8=Q7,"H",IF(C8=R7,"T",IF(C8=S7,"C")))
Then I tried this formula but it doesn’t either, although, I think it’s
close.
=CHOOSE(IF(ISNUMBER(SEARCH(C8,$Q$7)),"H"),IF(ISNUMBER(SEARCH(C8,$R$7)),"T"),IF(ISNUMBER(SEARCH(C8,$S$7)),"C"))
Thanks