+ Reply to Thread
Results 1 to 3 of 3

Current date formula based on month

  1. #1
    Registered User
    Join Date
    05-03-2006
    Posts
    3

    Unhappy Current date formula based on month

    I can't figure out how to create a formula to give me a number using the current date based on the month and stop calculating. So lets say the current date is May 04/06 and I want the cell to show the number 4, then 5 when its May 05/06 and so on. Well I'm using a formula that does that, which is =Day(Today()). However I need this formula to stop calculating at the end of the month. So if its May 31/06, then the cell should reflect 31. But once the date is June 01/06 then my number is back to 1. I need it to only calculate based on the month I assign to it. I've been playing with this for ever and can't figure it out.

  2. #2
    Forum Contributor
    Join Date
    03-23-2006
    Location
    Vancouver
    Posts
    114
    You need to specify a minimum value in your formula as follows:

    =day(min(today(),date(2006,5,31))

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    you should use both formulas in different cells.
    like:

    A1: =TODAY()
    A2: =DAY(A1)

+ 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