+ Reply to Thread
Results 1 to 2 of 2

Stupid Question

  1. #1
    Registered User
    Join Date
    05-17-2005
    Posts
    13

    Stupid Question

    I can't find the command that will allow me to take the value from a cell, text and a date combined and then just leave the date. The text value is always the same 13 characters that preceed the date.

    Sorry just can't find the command been awhile since I used it.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Without seeing a example I'm sure there's a few ways to do this.

    e.g

    if the Text and date are separated by a space you could use Data > Text to Column > Delimiter > space.

    or
    say your data is abcdefghijklm (13 characters) you could try the below. Replace my data for yours

    =VALUE(TRIM(SUBSTITUTE(A1,"abcdefghijklm","")))
    formatted as date

    or

    =VALUE(RIGHT(A1,LEN(A1)-14))
    formatted as date


    VBA Noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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