+ Reply to Thread
Results 1 to 7 of 7

Replacing a date formular result with another formular

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Question Replacing a date formular result with another formular

    Hi
    I have a cell which cannot exceed 10 characters and will be info pulled from other cells.
    My formula returns the start date and first characters of other cells to create a “short name”. I am looking for a formula that will return the date as the first two characters of the day, followed by the first and last characters of the month, followed by the date. This formula will be used in a sequence (by this I mean dragged to copy to the end date cell). If the start date in A1 is 2013/01/01. I would like Cell A2 to be TuJy01wxyz ("wxyz" being the first characters from other cells). I am using =TEXT(A1,"DDDMMMD"), but don't know how to replace it to shortend days and months. I am also looking for the option to have the replaced month to be the first and third characters of that month (though I will run into a duplicate for January and June, as they both have “N” as the third character.
    Any help?

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Replacing a date formular result with another formular

    A1=08/06/2013
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Replacing a date formular result with another formular

    As well as 3 months beginning with J, there are 2 that begin with M, and taking the 3rd character of the month will, as you say, result in Jn for both January and June. To avoid this, you could take the 4th character if the month begins with J and thus have JU for January, JE for June and JY for July, but use the 3rd character for all other months. If that is acceptable, then you can try this formula:

    =LEFT(TEXT(A1,"ddd"),2)&LEFT(TEXT(A1,"mmm"))&MID(TEXT(A1,"mmmm"),IF(LEFT(TEXT(A1,"mmm"))="J",4,3),1)&TEXT(A1,"dd")&LEFT(B1&"....",4)

    assuming B1 contains the other characters that you want to add. If you put this in C1 and have other dates down column A and names in column B, then you can copy the formula down.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Replacing a date formular result with another formular

    Post a sample workbook.

  5. #5
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Replacing a date formular result with another formular

    Hi Pete.
    Thank you for your quick response. I will definitely use your formular as it has much better results.
    I'm sorry I cannpt upload a sample file as I don't have the necessary permissions.

  6. #6
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Replacing a date formular result with another formular

    Hi protonLeah,
    Thank you very much for your quick response too. It works fine. I don't have my permissions set to upload files, so have to explain what I need like this.

  7. #7
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    116

    Re: Replacing a date formular result with another formular

    Hi mikeTron:
    I'm sorry I cannpt upload a sample file as I don't have the necessary permissions, and though I have two responses, I definitely would welcome any suggestions you have - thanks.

+ 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. Excel SumIf Formular with date criteria
    By sgbra0 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2013, 07:59 PM
  2. I now need to only sum the date for this formular
    By watt4 in forum Excel General
    Replies: 3
    Last Post: 02-16-2012, 05:52 PM
  3. Date conversion formular
    By EH003268 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-23-2006, 06:00 PM
  4. [SOLVED] any formular to deduct an amount automatically on a given date?
    By Arif in forum Excel General
    Replies: 1
    Last Post: 01-15-2006, 01:35 PM
  5. Need Help With A Formular
    By ximen in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-11-2005, 01:06 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