+ Reply to Thread
Results 1 to 3 of 3

Function to parse street number and name /Function to parse out date

  1. #1
    Registered User
    Join Date
    01-25-2015
    Location
    Minneapolis, MN
    MS-Off Ver
    Windows 7
    Posts
    36

    Function to parse street number and name /Function to parse out date

    I have a value that gets imported as follows: 1970-03-15T00:00:00

    I would like to manipulate it to read mmddyyyy, 03151970.

    Also, I have a address that gets imported as follows: 123 Elm St.

    I would like to parse out street number into 1 cell, and street name into another.

    Any help would be appreciated.
    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Function to parse street number and name /Function to parse out date

    To get date

    =MID(A1,6,2)&MID(A1,9,2)&LEFT(A1,4)

    For Streets please post a sample file as street names are not usually as simple as your example.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Function to parse street number and name /Function to parse out date

    1) Assuming the date string in A1, put this formula in B1, then format the cell a mmddyyy
    =DATEVALUE(LEFT(A1, 10))

    2) Assuming the address string in A2:
    B2: =LEFT(A2, FIND(" ", A2)-1)
    C2: =MID(A2, FIND(" ", A2)+1, LEN(A2))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to use parse function of range
    By PVT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2014, 07:25 AM
  2. [SOLVED] Expand on Parse Function/ Column to Column - Contiguous Data to include quantities
    By arcamp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2013, 05:18 PM
  3. [SOLVED] Parse date from cell which contains other characters
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-31-2013, 09:23 AM
  4. Parse Function
    By angel56 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-09-2008, 04:33 PM
  5. How to parse a string with a date?
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2006, 02:50 AM
  6. [SOLVED] How do i parse a text string with a date?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2006, 02:02 AM
  7. [SOLVED] Need macro to parse function into longhand
    By steve in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2005, 01:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1