+ Reply to Thread
Results 1 to 3 of 3

If date is between 1 through 1th of month return value

Hybrid View

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    Wichita, KS
    MS-Off Ver
    Excel 2013
    Posts
    25

    If date is between 1 through 1th of month return value

    If I make a sale between the 1st of each month through the 1th of each month I will be paid on the 31st of that month. If I make a sale on the 16th of each month through to the last day of each month I will be paid on the 15th of the next month. I need this formula to work for every month.

    cell e has date of sale
    cell h has the returned value of the formula above

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: If date is between 1 through 1th of month return value

    hi sclasen,

    This post is a bit difficult to understand. It would help if you uploaded a sample.

    I think the answer you want though is:
    Formula: copy to clipboard
    =if(day(e1)<=15,eomonth(e1,0),eomonth(e1,0)+15)

    (untested) if that doesn't work, upload a sample workbook.
    Last edited by simarui; 07-31-2014 at 04:19 PM. Reason: forgot a term in the eomonth() formula

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If date is between 1 through 1th of month return value

    Try this...

    Data Range
    A
    B
    1
    Date
    Pay Date
    2
    7/11/2014
    7/31/2014
    3
    7/19/2014
    8/15/2014
    4
    7/28/2014
    8/15/2014
    5
    7/30/2014
    8/15/2014
    6
    7/21/2014
    8/15/2014
    7
    7/14/2014
    7/31/2014
    8
    7/7/2014
    7/31/2014
    9
    7/28/2014
    8/15/2014
    10
    7/12/2014
    7/31/2014


    This formula entered in B2 and copied down:

    =IF(DAY(A2)<16,EOMONTH(A2,0),EOMONTH(A2,0)+15)

    Format as Date.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to return End OF Month date with non-calendar month lengths.
    By Snoddas in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-09-2014, 08:45 AM
  2. Replies: 12
    Last Post: 10-10-2013, 10:02 AM
  3. [SOLVED] lookup date within date range grid to return fiscal month value
    By tigerseye001 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2012, 02:27 PM
  4. Replies: 3
    Last Post: 01-18-2008, 09:09 PM
  5. Replies: 3
    Last Post: 09-25-2007, 10:26 AM

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