+ Reply to Thread
Results 1 to 13 of 13

fixing a date formula

  1. #1
    Registered User
    Join Date
    04-15-2004
    Posts
    30

    fixing a date formula

    Hi,

    see attached file. In the green cell I enter a date, and a time-line below will give me breakback schedule of a project

    1. In row 16, you see two 2009. One should be 2008.
    2. I want the 2009 and 2008 to appear under the January, not December.
    3. If I enter date February in the green cell, the whole calender goes wack, why?

    Any help is appreciated.
    Thanks
    NYBoy

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by NYBoy
    Hi,

    see attached file. In the green cell I enter a date, and a time-line below will give me breakback schedule of a project

    1. In row 16, you see two 2009. One should be 2008.
    2. I want the 2009 and 2008 to appear under the January, not December.
    3. If I enter date February in the green cell, the whole calender goes wack, why?

    Any help is appreciated.
    Thanks
    NYBoy
    Hi NYBoy,
    What type of formula?
    That would be beneficial to your title as others may search for a similar problem and the title you provided would never be found...

    Please edit your title for this purpose.

  3. #3
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    U15: =EDATE(V15,-1). Copy left to B15
    V16: =IF(MONTH(V15)=1,YEAR(V15),"") Copy left to B16

    If you don't have the EDATE function, then install the standard excel Analysis Toolpak addin.

    rylo

  4. #4
    Registered User
    Join Date
    04-15-2004
    Posts
    30
    Thank rylo!! I'm all set.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    NYBoy,

    Please read the Forum Rules about thread titles before starting your next thread, to avoid having it closed while you ponder a concise and descriptive title.

    Thanks.

  6. #6
    Registered User
    Join Date
    04-15-2004
    Posts
    30
    shg, got it! Thanks. Will have a concise title next time.
    can you pls fix it this time?

  7. #7
    Registered User
    Join Date
    04-15-2004
    Posts
    30
    Quote Originally Posted by rylo
    Hi

    U15: =EDATE(V15,-1). Copy left to B15
    V16: =IF(MONTH(V15)=1,YEAR(V15),"") Copy left to B16

    If you don't have the EDATE function, then install the standard excel Analysis Toolpak addin.

    rylo
    rylo, one more question pls. I want the January of each year to stand out, let's say I want excel to color code January automatically. Is there a way to do it? Thank you.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Quote Originally Posted by NYBoy
    shg, got it! Thanks. Will have a concise title next time.
    can you pls fix it this time?
    You can edit the title yourself, click on edit, advanced and change the title...why ask somebody else to do it or you?? You have 53 posts, you should know the rules by now!

  9. #9
    Registered User
    Join Date
    04-15-2004
    Posts
    30
    Quote Originally Posted by davesexcel
    You can edit the title yourself, click on edit, advanced and change the title...why ask somebody else to do it or you?? You have 53 posts, you should know the rules by now!
    I'm not here waste your or my time...

    i would have fixed it. but
    1) rule says if 2 hrs passed, ask moderator to fix it.
    2) where is "edit"?

    Either guide me correctly or you pls fix it.

  10. #10
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    1) On the title change, can you nominate what the title should be and I'll have it changed.

    2) Have a look at conditional formatting. You should be able to do something when the cell contains "Jan". If you can't solve it, then what formatting do you want it to have? Bold, background color????


    rylo

  11. #11
    Registered User
    Join Date
    04-15-2004
    Posts
    30
    Hi rylo,
    I tried the conditional formatting, it didn't work.

    i want "Jan" cell and the year cell (the cell below Jan) to be gray color all the time. Is there a way to do this?

    NYBoy

  12. #12
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Following on from the above formulas

    V15: Format, Conditional formatting, formula is: =TEXT(V15,"mmm") = "Jan", nominate your pattern color. Copy the format left.
    V16: format, conditional formatting, formula is: =TEXT(V15,"mmm") = "Jan", nominate your pattern color. Copy the format left.

    rylo

  13. #13
    Registered User
    Join Date
    04-15-2004
    Posts
    30
    Thank you, rylo!

+ 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