Forum Discussion
anupambit1797
Jun 29, 2023Iron Contributor
TEXT EXTRACTION
Dear Experts, Could you please share on how can we populate column="B" with SDX65/70, so criteria is if Column "A" contains SDX65, column"B" is populated with SDX65, and if Col...
- Jul 05, 2023
Is this what you are looking for?
=IF(ISNUMBER(SEARCH("SDX65",A2)), "SDX65", IF(ISNUMBER(SEARCH("SDX70",A2)), "SDX70", ""))
Replace SEARCH with FIND, especially if you want a case-sensitive search.
-----
Alternatively:
=IFERROR(MID(A2,SEARCH("SDX??",A2),5), "")
returns any 5-character string that begins with "SDX" (or "sdx" or any combination of mixed case).
Note that we cannot use FIND (for a case-sensitive search) here because FIND does not allow wildcard characters like "?".
Detlef_Lewin
Jul 05, 2023Silver Contributor
Why?
anupambit1797
Jul 05, 2023Iron Contributor
Because, from my understanding , solving problems with more than one method is always useful to explore, Solution is not the only last thing , on how many ways we can explore to solve it seems more important..
anyways I tried to use the IF there and seems some minor thing I am missing , will check this more..
Thanks & Regards
Anupam Shrivastava
anyways I tried to use the IF there and seems some minor thing I am missing , will check this more..
Thanks & Regards
Anupam Shrivastava
- Detlef_LewinJul 05, 2023Silver Contributor
=CONCAT(IF(ISNUMBER(SEARCH({"SDX65","SDX70"},A2)),{"SDX65","SDX70"},""))That's 4 functions.
The LOOKUP solution only needs 2 functions.
Now you try with AVERAGE().