+ Reply to Thread
Results 1 to 7 of 7

Displaying every 1st and 15th of the month based on todays date

  1. #1
    Registered User
    Join Date
    06-22-2012
    Location
    Northwest
    MS-Off Ver
    Excel 2007/2010
    Posts
    15

    Displaying every 1st and 15th of the month based on todays date

    So I have a formula to display the 1st and the 15th of each month going horizontally

    =DATE(YEAR(E2),IF(DAY(E2)=1,MONTH(E2),MONTH(E2)+1),IF(DAY(E2)=1,15,1))

    where E2 is =TODAY()

    However, if =TODAY() isn't 1 or 15, it skips to the 1st of next month. ie. =TODAY() is 1/3/13 - so my formula displays 2/1/13... it should be 1/15/13 and then 2/1/13, 2/15/13, 3/1/13, 3/15/13 etc...
    if I need to display a different formula in E3 (where the formula is) just to get that, that's fine...I can't figure out how to to make =IF(DAY(E2)=1,15,1) encompass more than 1 day.

    Thanks!

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Displaying every 1st and 15th of the month based on todays date

    Do you mean like this?

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    06-22-2012
    Location
    Northwest
    MS-Off Ver
    Excel 2007/2010
    Posts
    15

    Re: Displaying every 1st and 15th of the month based on todays date

    Quote Originally Posted by ConneXionLost View Post
    Do you mean like this?

    Please Login or Register  to view this content.
    quite

    Thanks.... I think I tried that backward. I had >=15 in the last function but never got anywhere.

    This works!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Displaying every 1st and 15th of the month based on todays date

    Alternate,
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    06-22-2012
    Location
    Northwest
    MS-Off Ver
    Excel 2007/2010
    Posts
    15

    Re: Displaying every 1st and 15th of the month based on todays date

    Quote Originally Posted by tigeravatar View Post
    Alternate,
    Please Login or Register  to view this content.
    This method is new to me, but also functions perfectly. Thanks

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Displaying every 1st and 15th of the month based on todays date

    =eomonth($e$2,ceiling(column(a1)/2,1)-2)+if(mod(column(a1),2),1,15)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Displaying every 1st and 15th of the month based on todays date

    another one.

    =IF(DAY(A1)<15,A1-DAY(A1)+15,EOMONTH(A1,0)+1)

+ 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