+ Reply to Thread
Results 1 to 9 of 9

3rd friday in month

  1. #1
    ramot06@yahoo.com
    Guest

    3rd friday in month

    Hi -
    I have a cloumn with dates. what i need is that the function will
    plot 1 if the certain date is the third friday in the relative month
    and 0 if not.

    How can I do that ?

    I searched the net - found close subjects but not exactly this.

    Thanks


  2. #2
    arno
    Guest

    Re: 3rd friday in month

    Hi,

    > I have a cloumn with dates. what i need is that the function will
    > plot 1 if the certain date is the third friday in the relative month
    > and 0 if not.



    hmmmm....

    is the third friday not the only friday between 15th and 21st?

    arno

  3. #3
    arno
    Guest

    Re: 3rd friday in month

    > is the third friday not the only friday between 15th and 21st?

    =IF(AND(DAY(a1)>=15,day(a1)<=21,weekday(a1)=6),"3rd friday","ohh")

    daddldo

    arno



  4. #4
    Peo Sjoblom
    Guest

    RE: 3rd friday in month

    This clever Daniel M formula will always return the date (based on another
    date) the third Friday, this assumes the date is in A1, adapt accordingly

    =DATE(YEAR(A1),MONTH(A1),1+7*3)-WEEKDAY(DATE(YEAR(A1),MONTH(A1),8-6))

    so if you have dates in A1:A50 and want to check them, this formula will
    return TRUE if third Friday

    =A1=DATE(YEAR(A1),MONTH(A1),1+7*3)-WEEKDAY(DATE(YEAR(A1),MONTH(A1),8-6))


    that way you can copy the formula and it will return TRUE or FALSE


    Regards,

    Peo Sjoblom

    "ramot06@yahoo.com" wrote:

    > Hi -
    > I have a cloumn with dates. what i need is that the function will
    > plot 1 if the certain date is the third friday in the relative month
    > and 0 if not.
    >
    > How can I do that ?
    >
    > I searched the net - found close subjects but not exactly this.
    >
    > Thanks
    >
    >


  5. #5
    Jason Morin
    Guest

    Re: 3rd friday in month

    Based on Arno's response, you could use:

    =(DAY(A1)>=15)*(DAY(A1)<=21)*(WEEKDAY(A1)=6)

    HTH
    Jason
    Atlanta, GA

    "arno" wrote:

    > Hi,
    >
    > > I have a cloumn with dates. what i need is that the function will
    > > plot 1 if the certain date is the third friday in the relative month
    > > and 0 if not.

    >
    >
    > hmmmm....
    >
    > is the third friday not the only friday between 15th and 21st?
    >
    > arno
    >


  6. #6
    ramot06@yahoo.com
    Guest

    Re: 3rd friday in month

    I assume that if the data starts from A2 - the formula need to be
    changed.
    Not only the cell refference.

    I tried it with changing to A2 and it gave me wrong result.

    If i want it have 1 if true or 0 if false , is it possible or
    just doing it in a different column ?

    Thanks


  7. #7
    ramot06@yahoo.com
    Guest

    Re: 3rd friday in month

    sorry. it works good. but still what about 1 or 0 ?


  8. #8
    Ron de Bruin
    Guest

    Re: 3rd friday in month

    Hi

    =IF(AND(WEEKDAY(D5,2)=5,DAY(D5)>14,DAY(D5)<=21),TRUE,"")

    Date in D5
    This example will return True

    Tip : See this Add-in if you want to insert this formula in your data table
    http://www.rondebruin.nl/datarefiner.htm

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    <ramot06@yahoo.com> wrote in message news:1118242583.043283.319060@g44g2000cwa.googlegroups.com...
    > Hi -
    > I have a cloumn with dates. what i need is that the function will
    > plot 1 if the certain date is the third friday in the relative month
    > and 0 if not.
    >
    > How can I do that ?
    >
    > I searched the net - found close subjects but not exactly this.
    >
    > Thanks
    >




  9. #9
    Peo Sjoblom
    Guest

    Re: 3rd friday in month

    You realize that you must have a date in A2, not text representation of a date

    =--(A2=DATE(YEAR(A2),MONTH(A2),1+7*3)-WEEKDAY(DATE(YEAR(A2),MONTH(A2),8-6)))

    the above will work for A2 and return 1 or 0 for TRUE or FALSE

    Regards,

    Peo Sjoblom

    "ramot06@yahoo.com" wrote:

    > I assume that if the data starts from A2 - the formula need to be
    > changed.
    > Not only the cell refference.
    >
    > I tried it with changing to A2 and it gave me wrong result.
    >
    > If i want it have 1 if true or 0 if false , is it possible or
    > just doing it in a different column ?
    >
    > Thanks
    >
    >


+ 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