+ Reply to Thread
Results 1 to 3 of 3

Finding a date format

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    india, delhi
    MS-Off Ver
    Excel 2003
    Posts
    5

    Post Finding a date format

    Hi,


    I am working on a data about thousands of row that a dates in different format, can it be possible to find all the dates from a range and convert them into a particular format.

  2. #2
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: Finding a date format

    hi try dis code,

    Please Login or Register  to view this content.
    Hope it will work
    Thanks
    A

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    india, delhi
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Finding a date format

    thanks a lot for the reply this is working,

    but it would be greae ful if you can give some light about the using of offset function with date function......
    because i wnat to chnage the format of dates put values against that dates from the range.

    i prepared a code with the help of above mentioned code but it is not running correctly it takes the dates as the cell value
    Sub finddates()
    Dim ccell As Range
    Dim bcell As String
    Dim dcell As String
    Dim ap As String

    bcell = CStr(InputBox("enter holidays"))
    dcell = CStr(InputBox("previous day"))

    For Each ccell In Range("a1:a50")
    If IsDate(ccell) = True Then
    'ccell.Value = Format(ccell, "DD--MM--YYYY")
    ap = "=networkdays" & "(" & ccell & "," & dcell & "," & bcell & ")"
    ccell.Offset(0, 2) = ap

    End If
    Next ccell
    End Sub

    please suggest
    Last edited by himanshug; 08-29-2012 at 03:53 PM. Reason: wokred on code

+ 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