+ Reply to Thread
Results 1 to 4 of 4

Combine data in 3 separate fields into useable date

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Combine data in 3 separate fields into useable date

    Hi,

    This question relates to Excel 2010 and is weird ... so please excuse the dippy question.

    I'm using the DATE= function to assemble three values but getting the wrong answer.

    F22 = 6
    G22 = 4
    H22 = 2012

    In cell F23, =DATE(F22,522,H22) gives the result 03/12/1954 not 06/04/2012

    In Excel's regional settings, the location is English (UK) and the PC runs Windows 7, which shows the location as United Kingdom with a format of English (United Kingdom).

    The context is that each year, I want to change the financial year in just one central cell, B1 (eg = 2013) and all cells update automatically.

    Thanks for any help

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Combine data in 3 separate fields into useable date

    Hello,

    In the DATE function, it appears to me as =DATE(year, month, day)
    So what you can do is try this
    Please Login or Register  to view this content.
    Hope this help.
    (copy pasta from Ford)
    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

    Regards,
    Lem

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Bedford, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Combine data in 3 separate fields into useable date

    Hi Lem and thanks.

    I knew it had to be something dozey and it worked immediately.

    Thanks

  4. #4
    Registered User
    Join Date
    04-15-2013
    Location
    Konya, Turkey
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Combine data in 3 separate fields into useable date

    Hi,

    if you enter the formula =VALUE(CONCATENATE(F22;".";G22;".";H22)) the result will be a serial number.

    Then from format cells (ctrl+1) date format will bring the solution.

    Regards

+ 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