+ Reply to Thread
Results 1 to 9 of 9

a formula to show date only not letters or characters

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    london, engalnd
    MS-Off Ver
    Excel 2010
    Posts
    10

    a formula to show date only not letters or characters

    Hi - I'm new to this, but wondering if there is a formula or macro to help with the following:

    in Cell A1 to A5 I have:
    24-dec-12
    13-feb-14A
    24-nov-89*
    blank cell
    19-may-12

    What I want the formula to be able to do is display the following in cell B1 to B5:
    24-dec-12
    13-feb-14
    24nov-89
    blank cell
    19-may-12

    And in cells C1 to C5 it should show:
    Blank cell
    A
    *
    blank cell
    blank cell

    I have only shown 5 cells worth of data, however I have over 1000 cells I need to do. Thanks for trying to solve this.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: a formula to show date only not letters or characters

    In B1 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In C1 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag both the formula's down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    06-10-2013
    Location
    london, engalnd
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: a formula to show date only not letters or characters

    Hi sixthsense,

    thanks for the response however, it didn't not work.

    I have attached a spread sheet showing what I want.

    tab1 shows the original data
    tab2 shows what I would like to see
    tab3 shows what outcome your formula gave me

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: a formula to show date only not letters or characters

    change Six's formula to...
    =IF(ISNUMBER(A3),A3,LEFT(A3,9)*1)
    then format all B to date. the 5-digit number is in fact a date -how excel sees a date, anyway...41267 days from 1/1/1900
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: a formula to show date only not letters or characters

    Please refer the attached file for solution.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-10-2013
    Location
    london, engalnd
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: a formula to show date only not letters or characters

    Thanks FDibbins.

    Your formula works for colB. However, where there is a blank cell it returns "#value" rather than leaving he cell blank.

    As for colC the formula sixthsense gave, just shows a blank cell. I want it to show the * or A. Which ever it has omitted.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: a formula to show date only not letters or characters

    Im sure Six's file solves your questions

  8. #8
    Registered User
    Join Date
    06-10-2013
    Location
    london, engalnd
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: a formula to show date only not letters or characters

    it does solve it. I posted the reply to you before I had seen sixthsense.

    Thank you to both of you for this!

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: a formula to show date only not letters or characters

    Happy to help and thanks for the feedback (Six did all the work though)

+ 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