• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

text function project|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / text function project|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…text function project
sp_PrintTopic sp_TopicIcon
text function project
Avatar
Joseph Horling
Member
Members
Level 0
Forum Posts: 15
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline
1
December 7, 2019 - 2:31 pm
sp_Permalink sp_Print

Hi,

I am working on a text function project for work.  I need to format information regarding the person's first name, middle name, and last name.  Also, need to extract the street address, street name, city, state, and zip code.  These are all in one cell and I need to break them apart. Is this possible to do.  When you open the file it is on the first tab.  Thanks for your help....Joe from Michigan.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
December 7, 2019 - 7:36 pm
sp_Permalink sp_Print

Hello,

’There is no file attached. Do check out these articles, they might give you the needed start.

https://www.myonlinetraininghu.....d-function
https://www.myonlinetraininghu.....el-formula
https://www.myonlinetraininghu.....to-columns

Avatar
Joseph Horling
Member
Members
Level 0
Forum Posts: 15
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline
3
December 7, 2019 - 11:03 pm
sp_Permalink sp_Print

Hi Eskilstuna, 

Here is the file, I apologize, I thought it was uploaded.  Can you take another look at it?  Thank you.  Joseph

Avatar
Geert Koetje

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
September 1, 2014
sp_UserOfflineSmall Offline
4
December 8, 2019 - 1:03 am
sp_Permalink sp_Print

Have the text split at 2 different seperators. And this in 2 steps.

The first seperation would 'text to column' by splitting on the comma

Than see the result and what it will show is the State with ZIP code is now in the adjacent cell

When looking at the remainder of the text there appears a number (house number) which is placed after the name

Here you can replace the blank between the Sur Name and the Number with a comma

REPLACE(old_text, start_num, num_chars, new_text)

The position of the above mentioned blank between Sur Name and House Number needs to be located ( n th position )

=(MIN(FIND.ALL({0;1;2;3;4;5;6;7;8;9};A13&"0123456789"))) [ in column "C"]  

Now the formula gives you a position, say with Marcia Jane Parker, that would be 20. Reduce this by 1  (i.e.  +A13-1) [in column "D"]

The last formula would give you the text with a comma, which can enable the result to be seperated by text to column

=REPLACE(A13,D13,1,",")

You now can tidy the string into the correct sequence. (Or combine the formulaes into 1 lengthy formulae)

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
5
December 8, 2019 - 4:23 am
sp_Permalink sp_Print

Hello Joseph,

I notice that you have different delimeters, spaces and commas. That makes it difficult to maintain text such as street adress etc. If it is possible to have one and same delimiter, for example a comma, it will be a lot easier to get things correct.

But you have come to a good start in your sample file. Just shout out if there is anything specific you need assistance with.

Br,

Anders

Avatar
Joseph Horling
Member
Members
Level 0
Forum Posts: 15
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline
6
December 9, 2019 - 12:22 pm
sp_Permalink sp_Print

Hi Anders,

Thanks for responding.  I got another piece of my project which was extracting the street number and name.  However, I do have a question regarding the start number and number of characters.  I have a long list of names so I was wondering if there is a way to do that differently.  In the last name I had to adjust each start number and number of characters.  That would take too long to do. Any suggestions?

Also, I'm stuck on getting the city and state out.  I put the delimeter the same to separate as a hyphen.   Thanks for you help....

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
7
December 9, 2019 - 5:23 pm
sp_Permalink sp_Print

Hi Joseph

When splitting names and addresses, is very difficult to get them 100% correct due to the different formats.

I have attempted to split them using some confusing formulas but will work provided the full address follows a certain format (refer attachment)

Hope this will give you some ideas.

Good luck.

Sunny

Avatar
Joseph Horling
Member
Members
Level 0
Forum Posts: 15
Member Since:
June 24, 2018
sp_UserOfflineSmall Offline
8
December 9, 2019 - 10:42 pm
sp_Permalink sp_Print

Hi Sunny,

Thanks for responding to my request.  Yes, that is a little bit confusing, I'm not sure how that all works.  Will those formulas work if I follow your suggestions for another spreadsheet?    Thanks, Joe.

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
9
December 10, 2019 - 1:34 pm
sp_Permalink sp_Print

Hi Joseph

I don't see any problem with that. You only need to change the range.

In most conversions, I would be extremely happy to get 80% correct.

As for the other 20%, I will segregate and convert them using other methods,formulas or manually depending on their formats. 

Let us know if you need any help.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31888
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.