+ Reply to Thread
Results 1 to 6 of 6

Join 3 numbers to form a date

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Join 3 numbers to form a date

    Hi :


    I have 3 numbers in 3 column

    Column D : 2
    Column K : 1
    Column L : 2012

    I need 2/1/2012 in Column P...how would i do this..

    Thanks

    RM

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Join 3 numbers to form a date

    Hello Riz,

    Place this formula where you need it. Change the cell references to what you will be using. Format the cell with formula to display the date in m/dd/yyyy format.
    =DATEVALUE(D1&"/"&K1&"/"&L1)
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Join 3 numbers to form a date

    Hi Leith:

    Thank you ...this will work.
    My purpose is to get a date range for semi-monthly pay period.
    Can you have a look at attached Excel file "sheet3" to help me create date range as shown

    Thanks a lot

    Riz
    Attached Files Attached Files

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Join 3 numbers to form a date

    Hello Riz,

    These formulas will calculate the beginning and ending dates from the table. The Year is taken from cell "$L$3". The day is from cells "D:J" and the month from "B".
    (Column P) =DATEVALUE(B3&"/"&MIN(D3:J3)&"/"&$L$3)
    (Column Q) =DATEVALUE(B3&"/"&MAX(D3:J3)&"/"&$L$3)

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Join 3 numbers to form a date

    in P3
    =DATEVALUE("2012"&"-"&B3&"-"&MIN(D3:J3))

    in Q3
    =DATEVALUE("2012"&"-"&B3&"-"&MAX(D3:J3))

    and copy down the columns
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Join 3 numbers to form a date

    Hi Leith:

    Thanks a lot ..this is great.

    Hey Leith i wanted to create a Calender like what you see in the sheet.
    I have created manually.
    This is mainly to calculate overtime hours for Semi-monthly Payroll ( twice a month Pay, Paycheck 1-15 and 16 thru end of month).

    Please help if u can..

    RM

+ 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