Forum

How to Extract the ...
 
Notifications
Clear all

How to Extract the name before the first number

6 Posts
3 Users
0 Reactions
621 Views
(@ricafonyat)
Posts: 9
Active Member
Topic starter
 

Hi Mynda, good morning!

Let me know if you can help me with this problem:

My goal is to extract everything before the first number in Column A of the attached file.

For example:

In cell A1 I have        Marina Palace31101001Recepção

So I want to split it and extract only "Marina Palace"

Thanks for your help

Best Regards

José Ricardo

 
Posted : 16/11/2016 8:58 am
(@db325)
Posts: 19
Active Member
 

Try the following formula:

=LEFT(A2,MIN(FIND({1,2,3,4,5,6,7,8,9,0},A2&1234567890))-1)

 
Posted : 16/11/2016 4:20 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Jose,

In Power Query you can add a custom column and use this formula:

=Text.Start( [Hotel], Text.PositionOfAny( [Hotel], {"1","2","3","4","5","6","7","8","9","0"} ) )

Kind regards,

Mynda

 
Posted : 16/11/2016 8:10 pm
(@ricafonyat)
Posts: 9
Active Member
Topic starter
 

Thanks Mynda!

In fact I was looking for the answer in Power Query.

Could you check what formulas would be appropriated in order to extract everything before the first number in column A?

I started to use Text.PositionOfAny(), but I could not finished.

Best Regards.

José

 
Posted : 16/11/2016 8:44 pm
(@ricafonyat)
Posts: 9
Active Member
Topic starter
 

Sorry Mynda!

Please do not consider my last email.

José

 
Posted : 16/11/2016 8:47 pm
(@ricafonyat)
Posts: 9
Active Member
Topic starter
 

Hi Mynda!

It works perfectly!!!

Thanks a lot!!

LaughLaughLaugh

 
Posted : 16/11/2016 8:55 pm
Share: