Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

To extract specific word from excel based on two criterias

I have a huge data in excel sheet in which i have to see if a word (part 1) or (part 2) comes in any cell in Column A it should copy this specific word (Part 1) (part 2) in Column b, otherwise it returns with (blank) or (-)

I am able to search and copy if there is a word (Part 1) in cell by using the formula =if(isnumber(search("Part 1",A1)),"Part 1","-") but i am not able to look two criteria.

please see e.g. in screenshot.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Screenshot

Is there any solution or if anyone can guide.

>Solution :

You can use this formula:

=IFERROR(MID(A1,FIND("Part ",A1), 6),"-")

It looks for "Part " – and returns the substring if found – by that you avoid having an extra condition for Part 1 and Part 2

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading