+ Reply to Thread
Results 1 to 3 of 3

extract date info, disregard year

Hybrid View

koticphreak extract date info, disregard... 04-09-2009, 09:25 PM
NBVC Re: extract date info,... 04-09-2009, 10:31 PM
koticphreak Re: extract date info,... 04-10-2009, 01:49 PM
  1. #1
    Forum Contributor
    Join Date
    09-13-2008
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    120

    extract date info, disregard year

    I need to do an if then statement that takes the date (which is in the form of "3/31/2009" and only use the "3/31" info.

    Only its slightly more complicated than that, its a formula that links to another program. Basically, the current quarter end date is "curdate()" so if i want a cell to show that, i enter "=curdate()" and i would like to build an if then statement using that date but only using the month/date combo (only possibly dates are 3/31, 6/30, 9/30, 12/31) so I guess I could even use just the month, the problem would be to extract that information in a formula and build the if then statement around it.

    So:
    if its 3/31, show 1
    if its 6/30, show 2
    if its 9/30, show 3
    if its 12/31, show 4

    I hope I'm making sense. any help will be greatly appreciated!
    Last edited by koticphreak; 04-10-2009 at 01:49 PM. Reason: SOLVED!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: extract date info, disregard year

    maybe?

    =MONTH(curdate())/3
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    09-13-2008
    Location
    Los Angeles, CA
    MS-Off Ver
    365
    Posts
    120

    Re: extract date info, disregard year

    wow... don't know how i didn't think of that.

    either way, many 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