• 505K Members
• 3,056 Online
• 602K Conversations
SOLVED

New Contributor

# finding a specified word from the sentence in the cell and put in the other cell

Hello,

I have very long door specification table. In the attached file in the "A" column the specification of door is written as a sample. I want to see in the "B" column the material of door . I wrote by hand in the "B" column each of the doors material , but I want that excel take specified word from in the "A" column and writes by itself.

3 Replies
Solution

# Re: finding a specified word from the sentence in the cell and put in the other cell

Hi Mustafa,

That could be

`=MID(A2,SEARCH(" cm ",A2)+4,SEARCH("door",A2)-SEARCH(" cm ",A2)-5)`

# Re: finding a specified word from the sentence in the cell and put in the other cell

Hello Sergei,

Thank you, yes it works 1 exactly what I wanted. Thank you so much.

Honestly I may say that I didn't understand how it works this magical formula but really great :)

Highlighted

# Re: finding a specified word from the sentence in the cell and put in the other cell

How it works:

MID(A2, 12, 6) returns text which is in A2 starting from 12th positions and 6 characters length;

SEARCH(" cm ", A2) finds the position of the " cm " in A2. +4 gives where next word starts (since " cm " is 4 characters length). Let say it'll be 12.

SEARCH("door", A2) finds the position where "door" starts. Extracting from it previous result minus one we receive the length of the text to extract (let say 6).

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies