+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Formula To Output What Range A Date Is In

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,010

    Formula To Output What Range A Date Is In

    Hi,

    I'm looking to create a formula that looks at a date and then outputs what range that date is in.

    For example:

    The monthly period for the transactions i'm creating a report for runs from the 16th - 15th of the following month. So if a transaction occurred on 7th Jan I would like the formula to output 'Dec - Jan' so I know that that transaction is shown on the 'Dec - Jan' statement.

    I hope this makes sense, any queries give me a shout.

    Thanks in advance,

    Snook
    Last edited by The_Snook; 01-07-2012 at 07:27 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,006

    Re: Formula To Output What Range A Date Is In

    Here, try this:

    =TEXT(G2-15,"mmm")&" - "&TEXT(G2,"mmm")
    Never use Merged Cells in Excel

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,010

    Re: Formula To Output What Range A Date Is In

    Hi Zbor,

    Amending the formula slightly (the second 'G2' to 'G2+15') appears to do the trick.

    Thanks

    Snook

+ 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