+ Reply to Thread
Results 1 to 3 of 3

Trying to get a whole date excel

  1. #1
    Registered User
    Join Date
    07-31-2016
    Location
    Auckland New Zealand
    MS-Off Ver
    2013
    Posts
    14

    Trying to get a whole date excel

    I have 3 seperate dates
    cell C2 = 1/03/2017 it is a data validation cell and if formatted to custom mmmm ;@ custom
    Cell C3 = 01/01/2017 it is a data validation cell and if formatted to custom yyyy ;@ custom
    My day number in B4 is =$F$2+(0-WEEKDAY($F$2)) which is formatted to ddd custom
    and underneath in B5 is =B$4 formatted to dd custom
    B4 and B5 are calendar dates and go across the columns with C4 = B4+1 and C5 = C4

    I am trying to get a whole date as in dd/mm/yyyy
    so the day from B5 and the month from C2 and the year from C3

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

    Re: Trying to get a whole date excel

    You don't say what is in cell F2, but you can use this:

    =DATE(YEAR(C3),MONTH(C2),DAY(B5))

    and format as appropriate.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-31-2016
    Location
    Auckland New Zealand
    MS-Off Ver
    2013
    Posts
    14

    Re: Trying to get a whole date excel

    That was brilliant!!
    so how do I put that so it fills a text box on my userform the day will be the active cell and form will open when left click on day making it the active cell in vba

+ 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. Have excel check cells for a date and email a user based on that date
    By simpsonb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2015, 08:22 PM
  2. Replies: 4
    Last Post: 09-19-2014, 11:26 AM
  3. [SOLVED] Help in writing formula in excel to produce dates based on start date and end date
    By shoot for moon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2014, 01:00 PM
  4. [SOLVED] need help to lookup a (workday) date, and then excel output to show that date minus 1
    By Marijke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-23-2013, 11:13 AM
  5. Replies: 0
    Last Post: 03-21-2013, 12:22 PM
  6. Replies: 1
    Last Post: 04-18-2012, 05:49 PM
  7. Replies: 3
    Last Post: 03-01-2006, 11:40 AM

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