hi good day/evening,
I am new to this forums and I want to thank everyone in advance,
can someone help me with my array problem, I wan to be able to compare a cell on a list. with this formula
COLUMN C is the list
COLUMN D is the what i want to compare to every row on the list
Bananna
COLUMN E is
=len(C2)
=SUMPRODUCT(--(LEFT(C2,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2)))))
this works on side by side comparisson, I would like to compare all what is in the list on column C with what is in the cell in D2. then retaining the maximum value
compare C2=D2 , C3=D2, C4=D2, C5=D2 and so on.
somewhat like this
=MAX(SUMPRODUCT(--(LEFT(C2,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(LEFT(C3,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(LEFT(C4,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(LEFT(C5,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C5,ROW(INDIRECT("c1:c" & E2)),1),D2)))))
another formula that I need to address is
=SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C2,ROW(INDIRECT("c1:c" & E2)),1),D2))))
this works on side by side comparisson, I would like to compare a list on column C with a cell. then retaining the maximum value
compare C2=D2 , C3=D2, C4=D2, C5=D2 and so on.
=MAX(SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C2,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C3,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C4,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C5,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C6,ROW(INDIRECT("c1:c" & E2)),1),D2)))))
but the list can go as long as there is data from the list (column c) "may use counta"
I am not using index match because this would only look for exact match. I want to be able to decide the percentage of approximate searching.
Thank you in advance
I am new to this forums and I want to thank everyone in advance,
can someone help me with my array problem, I wan to be able to compare a cell on a list. with this formula
COLUMN C is the list
APPLE |
BANANA |
STRAWBERRY |
PINEAPPLE |
ORANGE |
COLUMN D is the what i want to compare to every row on the list
Bananna
COLUMN E is
=len(C2)
=SUMPRODUCT(--(LEFT(C2,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2)))))
this works on side by side comparisson, I would like to compare all what is in the list on column C with what is in the cell in D2. then retaining the maximum value
compare C2=D2 , C3=D2, C4=D2, C5=D2 and so on.
somewhat like this
=MAX(SUMPRODUCT(--(LEFT(C2,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(LEFT(C3,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(LEFT(C4,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(LEFT(C5,ROW(INDIRECT("c1:c" & E2)))=LEFT(D2,ROW(INDIRECT("c1:c" &E2))))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C5,ROW(INDIRECT("c1:c" & E2)),1),D2)))))
another formula that I need to address is
=SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C2,ROW(INDIRECT("c1:c" & E2)),1),D2))))
this works on side by side comparisson, I would like to compare a list on column C with a cell. then retaining the maximum value
compare C2=D2 , C3=D2, C4=D2, C5=D2 and so on.
=MAX(SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C2,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C3,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C4,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C5,ROW(INDIRECT("c1:c" & E2)),1),D2)))),SUMPRODUCT(--(ISNUMBER(SEARCH(MID(C6,ROW(INDIRECT("c1:c" & E2)),1),D2)))))
but the list can go as long as there is data from the list (column c) "may use counta"
I am not using index match because this would only look for exact match. I want to be able to decide the percentage of approximate searching.
Thank you in advance