+ Reply to Thread
Results 1 to 6 of 6

display the dates in two cells in a single cell separated by hyphen

  1. #1
    Registered User
    Join Date
    12-11-2010
    Location
    bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    display the dates in two cells in a single cell separated by hyphen

    hi,

    i need the dates in 2 different cells to be combined in one cell separated by hyphen and display the same.

    i tried in a3 "=a1 & a2" it is giving some numbers
    example:
    in cell a1 03-mar
    in cell a2 04-mar
    now in cell a3 i need 03-mar - 04 mar

    thanks in advance
    Girish
    Last edited by girish749; 02-22-2011 at 06:29 AM.

  2. #2
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: display the dates in two cells in a single cell separated by hyphen

    Hi Girish,

    Try this format
    3rd March in A1
    4th March in A2

    and this formula in A3 =+CONCATENATE(A1," - ",A2)
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: display the dates in two cells in a single cell separated by hyphen

    Hi, maybe you could try

    =text(A1,"dd-mmm")&" - "&text(A2,"dd-mmm")
    Regards

    नमस्ते

  4. #4
    Registered User
    Join Date
    12-11-2010
    Location
    bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: display the dates in two cells in a single cell separated by hyphen

    hi rahul,

    thanks for the suggestion but the a3 cell give the value something like 40239 - 40240 .

    thanks & regards
    Girish

  5. #5
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: display the dates in two cells in a single cell separated by hyphen

    try this
    =text(A1,"dd-mmm")&" - "&text(A2,"dd-mmm")

  6. #6
    Registered User
    Join Date
    12-11-2010
    Location
    bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: display the dates in two cells in a single cell separated by hyphen

    hi rahul,

    thanks a lot for your help now i'm able to get what i want .

    thanks again

    regards
    Girish

+ 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