m_in_spain
Board Regular
- Joined
- Sep 28, 2018
- Messages
- 72
- Office Version
- 365
- Platform
- Windows
Hi
I have been battling this one for hours!
I have two formulae one that looks down Column E for specific text that is held in cell G2, the second looks down the same ColumnE for specific text held in G3.
Both work well and return the value of the specific cell to cell E1.
I have been trying to combine this for one formula tooks down Column E for both Texts (G2 & G3) and retruns the cell found to cell E1
Cell G2 is a constant text, while G3 can alter, however in the searched list in Column E there are other items with similar name to that in G2, and indeed with the same text as in G3, so i do need to check for G2
Formulae:
=IFERROR(INDEX($E$2:$E$200, SMALL(IF(ISERROR(SEARCH(G2, $E$2:$E$200)), "", MATCH(ROW($E$2:$E$200), ROW($E$2:$E$200))), ROW(B1))), "")
and
=IFERROR(INDEX($E$2:$E$200, SMALL(IF(ISERROR(SEARCH(G3, $E$2:$E$200)), "", MATCH(ROW($E$2:$E$200), ROW($E$2:$E$200))), ROW(B1))), "")
I want one that does both! i.e. the cell value that goes back to E1 must have both text strings from G2 & G3
While furthering my knowledge of excel, i would rather the search column is E2 to last used row in Column E, I suspect that bit is easier!
And finally the lat bit of these formaule, (which i worked out through scavanging google), ROW(B1) - what is the function of that statement?, originally somehow it had got itself to ROW(AF1) which is way outside my data area, so i changed it to B1 (which also happens to be the source for cell G3, but this change appeared to make not a jot of difference.
Many thanks for reading this and any help will be most appreciated.
I have been battling this one for hours!
I have two formulae one that looks down Column E for specific text that is held in cell G2, the second looks down the same ColumnE for specific text held in G3.
Both work well and return the value of the specific cell to cell E1.
I have been trying to combine this for one formula tooks down Column E for both Texts (G2 & G3) and retruns the cell found to cell E1
Cell G2 is a constant text, while G3 can alter, however in the searched list in Column E there are other items with similar name to that in G2, and indeed with the same text as in G3, so i do need to check for G2
Formulae:
=IFERROR(INDEX($E$2:$E$200, SMALL(IF(ISERROR(SEARCH(G2, $E$2:$E$200)), "", MATCH(ROW($E$2:$E$200), ROW($E$2:$E$200))), ROW(B1))), "")
and
=IFERROR(INDEX($E$2:$E$200, SMALL(IF(ISERROR(SEARCH(G3, $E$2:$E$200)), "", MATCH(ROW($E$2:$E$200), ROW($E$2:$E$200))), ROW(B1))), "")
I want one that does both! i.e. the cell value that goes back to E1 must have both text strings from G2 & G3
While furthering my knowledge of excel, i would rather the search column is E2 to last used row in Column E, I suspect that bit is easier!
And finally the lat bit of these formaule, (which i worked out through scavanging google), ROW(B1) - what is the function of that statement?, originally somehow it had got itself to ROW(AF1) which is way outside my data area, so i changed it to B1 (which also happens to be the source for cell G3, but this change appeared to make not a jot of difference.
Many thanks for reading this and any help will be most appreciated.