Forum

Notifications
Clear all

Extract text from cell after specific character

4 Posts
2 Users
0 Reactions
60 Views
(@sharas4ever)
Posts: 2
New Member
Topic starter
 
Hello,

I want to extract country information from cell.
Lines number in cell may be different. But there always will be prefix "Country: " in this line.

Could you please help me on this?

A1:
Name: Adam
Surname: Jones
Email: [email protected]
Company: Adam Company UTD
Job title: Database Manager
Phone: +123456789
Country: United States
-random text-
Registered

A2:
Name: John
Surname: Doe
Email: [email protected]
Company: Doe and Sons
Job title: Mechanical Engineer
Phone: 00123456789
Country: United Kingdom
-bla bla bla-
random text
registration

Wanted result:

B1:
United States

B2:
United Kingdom

 
Posted : 20/09/2018 4:51 am
(@sunnykow)
Posts: 1417
Noble Member
 

It will depend if all countries are two-worded like in your examples.

If not then it may be a bit difficult.What is the text after the country's name?

Better if you could provide more dummy data in a attachment for us to take a look.

Sunny

 
Posted : 20/09/2018 11:19 am
(@sharas4ever)
Posts: 2
New Member
Topic starter
 

Not all countries are two worded.

The text after the country might be various. There are no specific word or symbol after country information.

But this text starts in new line.

 
Posted : 21/09/2018 9:47 am
(@sunnykow)
Posts: 1417
Noble Member
 

Give this a try. Not too sure if it will work under all circumstances.

I am assuming that CHAR(10) is used to break the line. You may need to change this if it is different.

Columns B-E are the detailed step-by-step workings. Column F is the mega formula (all in one)

Hope this helps.

Sunny

 
Posted : 21/09/2018 10:39 pm
Share: