Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to import a text file into excel and then concatenate the info. I am close but I cannot figure out how to

I am trying to import a text file into excel and then concatenate the info. I am close but I cannot figure out how to separate the state from the zip code when it is written like:

Bob Jones

123 Sesame St

Walla Walla, WA 12345

123-456-7890

I can get everything on one line and use the trim function to get rid of the spaces before the address and city/state/zip line...but I am not sure how to separate the State and Zip so they will be in their own column. This is why my data looks like: Bob Jones,123 Sesame St,Walla Walla WA 12345,123-456-7890. My current formula is: =CONCATENATE(TRIM(A1),",",TRIM(A2),",",TRIM(A3),",",TRIM(A4))

Any suggestions?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intro Stats

Authors: Richard D De Veaux, Paul F Velleman, David E Bock, Nick Horton

5th Edition

0134668421, 9780134668420

Students also viewed these Accounting questions